diff --git a/proxy/http2/Http2ClientSession.cc b/proxy/http2/Http2ClientSession.cc index 0ab4d9fd362..ce512582de6 100644 --- a/proxy/http2/Http2ClientSession.cc +++ b/proxy/http2/Http2ClientSession.cc @@ -288,7 +288,6 @@ void Http2ClientSession::flush() { if (this->_pending_sending_data_size > 0) { - total_write_len += this->_pending_sending_data_size; this->_pending_sending_data_size = 0; this->_write_buffer_last_flush = Thread::get_hrtime(); write_reenable(); diff --git a/proxy/http2/Http2ClientSession.h b/proxy/http2/Http2ClientSession.h index 5e2b00db78e..782854ba092 100644 --- a/proxy/http2/Http2ClientSession.h +++ b/proxy/http2/Http2ClientSession.h @@ -136,7 +136,6 @@ class Http2ClientSession : public ProxySession bool _should_do_something_else(); - int64_t total_write_len = 0; SessionHandler session_handler = nullptr; MIOBuffer *read_buffer = nullptr; IOBufferReader *_reader = nullptr;