WebServer icon indicating copy to clipboard operation
WebServer copied to clipboard

怎么没见到fd的close?

Open SheyQ opened this issue 5 years ago • 4 comments

唯一在析构函数里看到的还被注释掉了... 所以timerfd和连接fd是在哪关闭的?

SheyQ avatar Apr 18 '19 02:04 SheyQ

~HttpData() 里面释放掉了连接fd。。感觉写的很不好,我没用timerfd这个东西

linyacool avatar Apr 18 '19 03:04 linyacool

eventloop 的wakeupfd 还有httpdata的fd都有看到在析构函数中close,但是server的listenfd好像没有看到close?

LauChungwei avatar May 05 '20 11:05 LauChungwei

@LauChungwei 这个确实是漏了

linyacool avatar May 05 '20 15:05 linyacool

不使用timerfd的原因也是因为对超时没那么敏感么,不需要提醒线程,而是选择惰性删除?

CNLarryAn avatar Jan 20 '22 13:01 CNLarryAn