djhenderson / pyodbc

Automatically exported from code.google.com/p/pyodbc
MIT No Attribution
0 stars 0 forks source link

Request: Add connection timeout property #101

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When attempting to connect to a database, there doesn't appear to be 
connection timeout property that can be set to throw an exception when a 
connection cannot be established within the set time.

This is helpful for attempting to connect to databases with invalid host IP, 
or if the network is not established to make host available to client. 
Presently, I wait about 15 seconds until an error is thrown (using 
PostgreSQL), but I'd like to fine-tune this down.

Original issue reported on code.google.com by mwto...@gmail.com on 3 Jun 2010 at 5:29

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Fixed in 2.1.8.  Thanks.

Original comment by mkleehammer on 6 Sep 2010 at 6:44

GoogleCodeExporter commented 9 years ago

Original comment by mkleehammer on 21 Nov 2010 at 4:44

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This is a great addition, but I can't find and documentation of the units for 
the new timeout property, is it msec, secs?

Original comment by mcbri...@gmail.com on 15 Feb 2011 at 3:56