diff options
author | Determinant <[email protected]> | 2019-10-13 15:32:16 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-10-13 15:32:16 -0400 |
commit | 8f76e5d8823b684d91e19f8efebe5579e00c8c48 (patch) | |
tree | f0421b5285e0530465de52f4f62ee4855ace7bc0 /src | |
parent | 01ad4251c8bc2cc240f7173b7267426085f7e5bb (diff) |
add len()
Diffstat (limited to 'src')
-rw-r--r-- | src/conn.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conn.cpp b/src/conn.cpp index 6a44a36..5b01745 100644 --- a/src/conn.cpp +++ b/src/conn.cpp @@ -106,7 +106,7 @@ void ConnPool::Conn::_recv_data(const conn_t &conn, int fd, int events) { ssize_t ret = seg_buff_size; while (ret == (ssize_t)seg_buff_size) { - if (conn->recv_buffer.size() >= conn->max_recv_buff_size) + if (conn->recv_buffer.len() >= conn->max_recv_buff_size) { /* receive buffer is full, disable READ event */ conn->ev_socket.del(); @@ -195,7 +195,7 @@ void ConnPool::Conn::_recv_data_tls(const conn_t &conn, int fd, int events) { auto &tls = conn->tls; while (ret == (ssize_t)seg_buff_size) { - if (conn->recv_buffer.size() >= conn->max_recv_buff_size) + if (conn->recv_buffer.len() >= conn->max_recv_buff_size) { /* receive buffer is full, disable READ event */ conn->ev_socket.del(); |