Subject | How can I reduce the time it takes to consider a connection failed. |
---|---|
Author | agtilden |
Post date | 2010-03-30T04:26:16Z |
When trying to open a connection to a remote host that happens to be unreachable it takes almost 3 minutes for the following error to get raised. How can I shrink that time?
/lib/python2.6/site-packages/kinterbasdb/__init__.py", line 641, in __init__
b.dsn, b.dpb, b.dialect, timeout
kinterbasdb.OperationalError: (-902, 'isc_attach_database: \n Unable to complete network request to host "db.foo.com".\n Failed to establish a connection.\n Operation timed out')
/lib/python2.6/site-packages/kinterbasdb/__init__.py", line 641, in __init__
b.dsn, b.dpb, b.dialect, timeout
kinterbasdb.OperationalError: (-902, 'isc_attach_database: \n Unable to complete network request to host "db.foo.com".\n Failed to establish a connection.\n Operation timed out')