Disconnecting with OpenTCP
‎01-29-2007
12:49 PM
1,771 Views

Victor125
Contributor I
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
1 Reply
‎02-03-2007
12:31 AM
599 Views

JimDon
Senior Contributor III
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
