diff options
author | Determinant <[email protected]> | 2019-10-13 21:34:11 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-10-13 21:34:11 -0400 |
commit | b6cc8b6615266fa1023b63d08e96971629d854c6 (patch) | |
tree | 9926ef0b577e56e632701a0c2c452094d8a25ce3 /src/conn.cpp | |
parent | c230c6d92e8bff8a3f401b3b538d08962180d0c2 (diff) |
fix bug: forgot to reset ready_recv
Diffstat (limited to 'src/conn.cpp')
-rw-r--r-- | src/conn.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conn.cpp b/src/conn.cpp index 5b01745..15f90bc 100644 --- a/src/conn.cpp +++ b/src/conn.cpp @@ -136,6 +136,7 @@ void ConnPool::Conn::_recv_data(const conn_t &conn, int fd, int events) { conn->recv_buffer.push(std::move(buff_seg)); } //ev_read.add(); + conn->ready_recv = false; conn->cpool->on_read(conn); } @@ -223,6 +224,7 @@ void ConnPool::Conn::_recv_data_tls(const conn_t &conn, int fd, int events) { buff_seg.resize(ret); conn->recv_buffer.push(std::move(buff_seg)); } + conn->ready_recv = false; conn->cpool->on_read(conn); } |