On 1-12-2012 15:21, Mark Rotteveel wrote: > For issue JDBC-279 I am implementing connect timeout support in Jaybird. > For the pure java driver I got it working, but it fails for the native > driver. > > As far as I understand it, adding isc_dpb_connect_timeout with a 4-byte > integer to the dpb should be sufficient, where the value is the connect > timeout in seconds. > > I did that with a timeout value of 1 (second), but the connect attempt > to a non-existent IP address times out at 44 seconds instead of the > expected 1 second. > > Am I missing something?
Looking at the code in remote.cpp and inet.cpp, the isc_dpb_connect_timeout isn't used until after the socket has been opened. Is there any way to use a timeout when opening the socket? Mark -- Mark Rotteveel ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: DESIGN Expert tips on starting your parallel project right. http://goparallel.sourceforge.net/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
