Re: ODBC TIMEOUT PROBLEM
Posted in 1998
Gabriel Weisz wrote: > > We have a pager app. on NT which connect/disconnect every second to an > Informix DB 7.24.on HP UNIX. Once or twice a day the connection hangs > for 30 minutes (exactly 30 minutes) and then it comes back and > continue. > Does any one had any hanging problem with the CLI 2.5 & and Intersolv > ODBC. Does anyone have any idea where that 30 minutes it might come > from. Yup. That's the time it is taking for the HP/UX network driver to realize that the port is no longer being used by the previous connection and release it. This is configurable in either the kernel or the driver itself. The real problem is that the NT app is just closing the port without shutting it down properly. This is a common problem when PCs connect to UNIX and do not properly shutdown the connection like when someone powers down DOS. Make sure the code call the shutdown() function equivalent with a flag value of '2', meaning to shutdown both sending and receiving functionality, if the WinSock library supports an equivalent function. Art S. Kagel