Skip to content

Commit bedc507

Browse files
committed
fix(network):1.11.3, 修复BufferedFd出现异常,没有关闭文件可读事件引起的HttpServer段错误问题
1 parent 53b0e22 commit bedc507

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

modules/network/buffered_fd.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ void BufferedFd::onReadCallback(short)
236236
}
237237
} else { //! 读出错了
238238
if (errno != EAGAIN) {
239+
sp_read_event_->disable();
239240
if (error_cb_) {
240241
++cb_level_;
241242
error_cb_(errno);

version.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
# TBOX版本号
2222
TBOX_VERSION_MAJOR := 1
2323
TBOX_VERSION_MINOR := 11
24-
TBOX_VERSION_REVISION := 2
24+
TBOX_VERSION_REVISION := 3

0 commit comments

Comments
 (0)