Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - TCPIP FIN_WAIT_2 state: (4 Items)
   
TCPIP FIN_WAIT_2 state  
Hello,

QNX632, x86

I need information about a TCP-IP issue.
We are Server in a tcp-ip connection and after a disconnection request, the line stay in FIN_WAIT_2 state and never go 
out this state. Nomore connection could be done. The only way to restore the connection is reboot our PC. Is it possible
 to bypass this state or set a timeout to go out this state and terminate the connection?

Thanks for Your help.

Jeevan
RE: TCPIP FIN_WAIT_2 state  
From the Net

"The FIN_WAIT_2 state comes immediately after receiving an ack from the
server of the client's original FIN (generated in the FIN_WAIT_1 state).
The reason that you are seeing connections 'hanging' in the FIN_WAIT_2
state is because the application has not received a final FIN from the
server".

Sounds like the client isn't sending out the final message for some
reason.


	Robert.

-----Original Message-----
From: Jeevan Mathew [mailto:community-noreply@qnx.com] 
Sent: Tuesday, September 16, 2008 11:14 AM
To: general-networking
Subject: TCPIP FIN_WAIT_2 state

Hello,

QNX632, x86

I need information about a TCP-IP issue.
We are Server in a tcp-ip connection and after a disconnection request,
the line stay in FIN_WAIT_2 state and never go out this state. Nomore
connection could be done. The only way to restore the connection is
reboot our PC. Is it possible to bypass this state or set a timeout to
go out this state and terminate the connection?

Thanks for Your help.

Jeevan


_______________________________________________
General
http://community.qnx.com/sf/go/post13483
Re: TCPIP FIN_WAIT_2 state  
But it should time out eventually.  Around 9 minutes
IIRC.

-seanb

On Tue, Sep 16, 2008 at 11:18:09AM -0400, Robert Craig wrote:
> From the Net
> 
> "The FIN_WAIT_2 state comes immediately after receiving an ack from the
> server of the client's original FIN (generated in the FIN_WAIT_1 state).
> The reason that you are seeing connections 'hanging' in the FIN_WAIT_2
> state is because the application has not received a final FIN from the
> server".
> 
> Sounds like the client isn't sending out the final message for some
> reason.
> 
> 
> 	Robert.
> 
> -----Original Message-----
> From: Jeevan Mathew [mailto:community-noreply@qnx.com] 
> Sent: Tuesday, September 16, 2008 11:14 AM
> To: general-networking
> Subject: TCPIP FIN_WAIT_2 state
> 
> Hello,
> 
> QNX632, x86
> 
> I need information about a TCP-IP issue.
> We are Server in a tcp-ip connection and after a disconnection request,
> the line stay in FIN_WAIT_2 state and never go out this state. Nomore
> connection could be done. The only way to restore the connection is
> reboot our PC. Is it possible to bypass this state or set a timeout to
> go out this state and terminate the connection?
> 
> Thanks for Your help.
> 
> Jeevan
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post13483
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post13484
> 
RE: TCPIP FIN_WAIT_2 state  
Oops... Forgot to add:

Does setting the SO_REUSEADDR socket option on your connection help out?


	Robert.

-----Original Message-----
From: Robert Craig 
Sent: Tuesday, September 16, 2008 11:18 AM
To: 'post13483@community.qnx.com'
Subject: RE: TCPIP FIN_WAIT_2 state

From the Net

"The FIN_WAIT_2 state comes immediately after receiving an ack from the
server of the client's original FIN (generated in the FIN_WAIT_1 state).
The reason that you are seeing connections 'hanging' in the FIN_WAIT_2
state is because the application has not received a final FIN from the
server".

Sounds like the client isn't sending out the final message for some
reason.


	Robert.

-----Original Message-----
From: Jeevan Mathew [mailto:community-noreply@qnx.com] 
Sent: Tuesday, September 16, 2008 11:14 AM
To: general-networking
Subject: TCPIP FIN_WAIT_2 state

Hello,

QNX632, x86

I need information about a TCP-IP issue.
We are Server in a tcp-ip connection and after a disconnection request,
the line stay in FIN_WAIT_2 state and never go out this state. Nomore
connection could be done. The only way to restore the connection is
reboot our PC. Is it possible to bypass this state or set a timeout to
go out this state and terminate the connection?

Thanks for Your help.

Jeevan


_______________________________________________
General
http://community.qnx.com/sf/go/post13483