Muduo中sock fd关闭的问题 #704
Answered
by
LunarStore
LunarStore
asked this question in
Q&A
-
在TcpConnection::handleClose()实现当中,为什么没有调用close,关闭sock fd?这样难道不会导致文件描述符耗尽吗?也看了一下TcpConnection的析构、TcpConnection::connectDestroyed()没有一个地方调用了close来关闭fd。可能我的基础比较薄弱,希望大大能帮忙解惑。 |
Beta Was this translation helpful? Give feedback.
Answered by
LunarStore
Jan 27, 2024
Replies: 1 comment
-
找到了,原来大大早就回复过此问题, 链接如下:链接,为后来人方便。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
LunarStore
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
找到了,原来大大早就回复过此问题, 链接如下:链接,为后来人方便。