Commit 2ff31bdd authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Remove redundant check

parent 2fa3d34a
...@@ -305,13 +305,6 @@ int MemcachedConnection::write_tls() { ...@@ -305,13 +305,6 @@ int MemcachedConnection::write_tls() {
return 0; return 0;
} }
if (sendq_.empty()) {
conn_.wlimit.stopw();
ev_timer_stop(conn_.loop, &conn_.wt);
return 0;
}
conn_.last_read = ev_now(conn_.loop); conn_.last_read = ev_now(conn_.loop);
std::array<struct iovec, MAX_WR_IOVCNT> iov; std::array<struct iovec, MAX_WR_IOVCNT> iov;
...@@ -379,13 +372,6 @@ int MemcachedConnection::write_clear() { ...@@ -379,13 +372,6 @@ int MemcachedConnection::write_clear() {
return 0; return 0;
} }
if (sendq_.empty()) {
conn_.wlimit.stopw();
ev_timer_stop(conn_.loop, &conn_.wt);
return 0;
}
conn_.last_read = ev_now(conn_.loop); conn_.last_read = ev_now(conn_.loop);
std::array<struct iovec, MAX_WR_IOVCNT> iov; std::array<struct iovec, MAX_WR_IOVCNT> iov;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment