Disconnecting with OpenTCP

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Disconnecting with OpenTCP

1,936 次查看
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
标签 (1)
0 项奖励
回复
1 回复

764 次查看
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 项奖励
回复