RFC中的原话如下:
When an application closes a connection in such a way that it can
no longer read any received data, the TCP SHOULD, per section
4.2.2.13 of RFC 1122, send a RST if there is any unread received
data, or if any new data is received. A TCP that fails to do so
exhibits "Failure to RST on close with data pending".
linger发送RST的行为在man文档中有比较隐晦的说明:
If SO_LINGER is disabled and a close is issued, the sys-
tem will process the close in a manner that allows the process to con-
tinue as quickly as possible作者: myworkstation 时间: 2013-08-24 15:37 回复 9# cxytz01