From 2a0dd0ee4f55e5a5a4398b72e755bd2eec6b330d Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Fri, 17 Apr 2020 17:15:32 -0700 Subject: [PATCH] minor --- src/conn.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/conn.cpp b/src/conn.cpp index 4d4fb3b..c1da87b 100644 --- a/src/conn.cpp +++ b/src/conn.cpp @@ -114,6 +114,7 @@ void ConnBase::bevRead() if(header[2]&pva_flags::Control) { // Control messages are not actually useful evbuffer_drain(rx, 8); + bufferevent_setwatermark(bev.get(), EV_READ, 8, tcp_readahead); continue; } // application message