Disconnecting with OpenTCP

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Disconnecting with OpenTCP

1,673 Views
Victor125
Contributor I
 
Hi, I develop an application with NE64 and OpenTCP. I just connect from a PC, NE64 sends data and PC close the connection but NE64 don't close connection immediately. It took about 2-3 seconds in close the connection by timeout. It's normal?
 
Can anyone help me ?
 
Victor
Labels (1)
0 Kudos
Reply
1 Reply

501 Views
JimDon
Senior Contributor III
In general, this is normal for TCP.

Usually it is longer than this - its called linger and it is to allow any stray packets on the net to arrive so that the local port number does not get reused and receive packets from the previous connection. Usually there is an option to turn it off NO_LINGER, but you shouldn't - its there for a reason.
0 Kudos
Reply