[freetds] Connection timeout problem on HP-UX
Predrag Parmakovic
preparmakov at yahoo.com
Wed Apr 11 09:16:36 EDT 2007
Hello,
I have solved the problem with connection timeout on HP-UX in 0.63 version of FreeTDS driver.
I have debugged FreeTDS ODBC driver and I have detected the problem in file login.c. The problem on HP-UX was in setting of non-blocking socket by ioctl method. Because that the socket remained blocking and connect method waited about 76 seconds... When I used fcntl method instead ioctl this setting worked fine and connection timeout worked fine.
I have made the patch for file login.c with these changes (attachment).
I have observed that in 0.64 version and current FreeTDS is used ioctl method and I think that connection timeout will not work on HP-UX nor with new timeout logic...
I suggest that and these version of driver's should to use fcntl method for HP-UX.
Also, I have tested freetds (0.63 and 0.64) on linux and I have concluded that connection timeout
works fine and with ioctl method...
Regards
----- Original Message ----
From: Duncan Berriman <duncan at dcl.co.uk>
To: FreeTDS Development Group <freetds at lists.ibiblio.org>
Sent: Tuesday, March 27, 2007 11:07:15 AM
Subject: Re: [freetds] Connection timeout problem on HP-UX
Hi,
I had a similar problem, seems it's a bug that has been fixed. See reply
below.
Duncan
Sorry, it's a bug. I should document it somewhere.
The good news is it's fixed as of a few months ago, so we believe. The
bad news is it's not released; you have to use a recent snapshot.
Timeout handling was quite a jumble. If you're curious, see my
announcment
http://lists.ibiblio.org/pipermail/freetds/2007q1/021030.html.
HTH.
--jkl
_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
____________________________________________________________________________________
Don't get soaked. Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: login.patch
Url: http://lists.ibiblio.org/pipermail/freetds/attachments/20070411/9228b53e/attachment.bat
More information about the FreeTDS
mailing list