Subject | Re: [firebird-python] How can I reduce the time it takes to consider a connection failed. |
---|---|
Author | Pavel Cisar |
Post date | 2010-03-30T06:23:06Z |
agtilden napsal(a):
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
> 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?This is not Python related, just general Firebird question, so you may
>
>
> /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')
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