Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

HP OpenVMS Systems

ask the wizard
Content starts here

IP socket FIN_WAIT_2 state? (keepalive)

» close window

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.)
 

answer written or last revised on ( 17-JAN-2000 )

» close window

 

** About PDF files: The PDF files on this Web site can be read online or printed using Adobe® Acrobat® Reader. If you do not have this software installed on your system, you may download it from Adobe's Web site
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.