From 2ff31bdd2b97a4529fb7bf04179876cf114dcfa2 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 26 Nov 2016 22:34:24 +0900 Subject: [PATCH] nghttpx: Remove redundant check --- src/shrpx_memcached_connection.cc | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/shrpx_memcached_connection.cc b/src/shrpx_memcached_connection.cc index db7e64ea..3f597b44 100644 --- a/src/shrpx_memcached_connection.cc +++ b/src/shrpx_memcached_connection.cc @@ -305,13 +305,6 @@ int MemcachedConnection::write_tls() { return 0; } - if (sendq_.empty()) { - conn_.wlimit.stopw(); - ev_timer_stop(conn_.loop, &conn_.wt); - - return 0; - } - conn_.last_read = ev_now(conn_.loop); std::array iov; @@ -379,13 +372,6 @@ int MemcachedConnection::write_clear() { return 0; } - if (sendq_.empty()) { - conn_.wlimit.stopw(); - ev_timer_stop(conn_.loop, &conn_.wt); - - return 0; - } - conn_.last_read = ev_now(conn_.loop); std::array iov;