在读取数据时,服务器/客户端RECV EAGAIN可以吗?
对于TCP连接,在客户端和服务器端都以非阻滞模式运行。
假设服务器一击成功地发送了10 bytes,客户端是否可以在(2个bytes,2 bytes,eagain,8 bytes)块中接收数据?或者,客户将始终在(2个,2个byt,8比特)中接收数据(没有Eagain)。无论如何,两者之间都可以有鹰吗?
For a TCP connection, operating in Non-blocking mode on both client and server-side.
Assume that server has sent 10bytes successfully in one shot, Can the client receive the data in (2bytes,2bytes, EAGAIN, 8bytes) chunks? or will the client will always receive data in (2bytes,2bytes,8bytes)(without EAGAIN). Can there be an EAGAIN in between in any case?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论