Groups
Groups
Sign in
Groups
Groups
Muduo network library
Conversations
About
Send feedback
Help
some questions about muduo handle TCP erros
56 views
Skip to first unread message
Yan Li
unread,
Oct 16, 2021, 1:01:26 PM
10/16/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Muduo network library
陈硕老师:
有几个问题想咨询一下。
1. muduo 目前对于 TCP 连接错误的处理 TcpConnection::handleError 仅打印 error 日志,在这里提及
https://github.com/chenshuo/muduo/issues/314
若一端发送 RST ,另一端 read 会返回 RST 错误,下一次 read 会返回 0 。我实际测试也是如此,想问的问题是这种条件下的 read 返回 0 ,应该查询哪方面的标准或文档呢?
2. C 与 S 建立 TCP 连接,若 S 由于 bug 误关闭了建立 TCP 连接的 fd ,此时就无法触发 read 返回 0 从而关闭连接,请问这种情况下如何处理呢?
Reply all
Reply to author
Forward
0 new messages