![]() |
![]() HP OpenVMS Systemsask the wizard |
![]() |
The Question is: DIGITAL TCP/IP Services for OpenVMS Alpha Version V5.0A on a AlphaServer DS20 500 MHz running OpenVMS V7.2-1 I am running the above software and operating system. I am having a problem with a software package using TCPIP establishing a listening socket. I get the following when I do a NETSTAT -a Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp 0 0 RAF631.4851 ROAPC122.12001 FIN_WAIT_2 tcp 0 0 RAF631.12241 ROAPC24.2403 FIN_WAIT_2 What is a FIN_WAIT_2 state? I cannot find any reference to this. The socket I am trying to start as a listening socket is 12241. Any idea as to to what may be causing the FIN_WAIT_2 state? I get an exit value of 148 from the C software running the application. From what I can tell that means there is a duplicate socket? Please let me know if you have any knowledge of this problem. Thank you. Sincerely, Will Perkinson What is a State of FIN_WAIT_2 The Answer is : FIN_WAIT_2 is a TCP connection state. FIN_WAIT_2 usually indicates that the socket has not been cleaned up, potentially due to a connection failure or remote system crash. The usual solution is to enable keepalive, and detect and clean up the connection. (eg: setsockopt call with SO_KEEPALIVE, or sys$qio IO$_SETMODE call.)
|