From ded576f4234025d4a2b5a0e31ddb51926a5a3031 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 4 Sep 2016 17:28:50 +0900 Subject: [PATCH] nghttpx: Fix bug that bytes are doubly counted for TLS connections --- src/shrpx_connection.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/shrpx_connection.cc b/src/shrpx_connection.cc index bc64f1a0..3d42537e 100644 --- a/src/shrpx_connection.cc +++ b/src/shrpx_connection.cc @@ -625,8 +625,6 @@ ssize_t Connection::write_tls(const void *data, size_t len) { } } - wlimit.drain(rv); - update_tls_warmup_writelen(rv); return rv; @@ -678,8 +676,6 @@ ssize_t Connection::read_tls(void *data, size_t len) { } } - rlimit.drain(rv); - return rv; }