Subject Re: [firebird-python] How can I reduce the time it takes to consider a connection failed.
Author Pavel Cisar
agtilden napsal(a):
> 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')

This is not Python related, just general Firebird question, so you may
get better replies in firebird-support. Anyway, I think that the problem
is in DNS resolution time-out setting in your OS.

best regards
Pavel Cisar
IBPhoenix