From b6cc8b6615266fa1023b63d08e96971629d854c6 Mon Sep 17 00:00:00 2001 From: Determinant Date: Sun, 13 Oct 2019 21:34:11 -0400 Subject: fix bug: forgot to reset ready_recv --- src/conn.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); } -- cgit v1.2.3-70-g09d2