//CODE:
PgSqlConnection conn = new PgSqlConnection();
string argConn = "Server=192.168.2.10;Port=5432;User Id=aaa;Password=aaa;Database=bbb;";
//I don't have access to the IP address
string connString = argConn;
connString += "Connection Timeout='2';";
conn = new PgSqlConnection(connString);
//conn.ConnectionTimeout is 2
try
{
conn.Open();
}
catch (Exception ex)
{
}
//CODE.
When I try to open the connection, it should really wait for only 2 seconds, but it stays for about 15 seconds.
How can I resolve this problem, because I want to check quickly if I have or I don't have a connection to the server.
//System
XP SP3 or Windows 7
VS 2005, VS 2008 - C#
dotConnect 4.50.29.0
Have a nice day.
Connection Timeout and Connection Lifetime are ignored
The new build of dotConnect for PostgreSQL 4.55.37 is available for download now.
It can be downloaded from http://www.devart.com/dotconnect/postgr ... nload.html (trial version) or from Registered Users' Area (for users with valid subscription only).
For more information, please refer to http://www.devart.com/forums/viewtopic.php?t=15320 .
It can be downloaded from http://www.devart.com/dotconnect/postgr ... nload.html (trial version) or from Registered Users' Area (for users with valid subscription only).
For more information, please refer to http://www.devart.com/forums/viewtopic.php?t=15320 .