- 论坛徽章:
- 0
|
查到了rfc1122,
4.2.2.13 Closing a Connection: RFC-793 Section 3.5
A host MAY implement a "half-duplex" TCP close sequence, so that an application that has called CLOSE cannot continue to read data from the connection. If such a host issues a CLOSE call while received data is still pending in TCP, or if new data is received after CLOSE is called, its TCP SHOULD send a RST to show that data was lost.
在linux下测试了下,果然client close后,就不能继续recv了。证明linux implements a "half-duplex" TCP close sequence
[ 本帖最后由 wishel 于 2008-11-11 12:52 编辑 ] |
|