This commit is contained in:
Michael Davidsaver
2021-01-27 10:45:48 -08:00
parent bdfe3c8b2f
commit b5167570e5
+2 -2
View File
@@ -301,9 +301,9 @@ void ServerConn::bevRead()
{
ConnBase::bevRead();
if(!bev) {
if(bev) {
auto tx = bufferevent_get_output(bev.get());
} else if(auto tx = bufferevent_get_output(bev.get())) {
if(evbuffer_get_length(tx)>=tcp_tx_limit) {
// write buffer "full". stop reading until it drains
// TODO configure