开发者

questions about tcp half-close

开发者 https://www.devze.com 2023-03-24 02:16 出处:网络
please see the following pic: the client initiate a half-close request and get acknowledged,if i dont misunderstand what half-close means,the client should not be able to send any data afterwards,

please see the following pic:

questions about tcp half-close

the client initiate a half-close request and get acknowledged,if i dont misunderstand what half-close means,the client should not be able to send any data afterwards, then how can it send back an ACK later开发者_如何学Python.


It's not the client data that is being sent, it the acknowledgement for the server data received after client does shutdown( fd, SHUT_WR ), which means client will not send anymore, but can still receive. The ACK itself is part of the transport protocol, not the application.

0

精彩评论

暂无评论...
验证码 换一张
取 消