Skip to content

Commit 43f15f9

Browse files
committed
Fix proxy.process.http.current_client_connections
1 parent e6634f7 commit 43f15f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

proxy/http/Http1ClientSession.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ Http1ClientSession::do_io_close(int alerrno)
261261
} else {
262262
HttpSsnDebug("[%" PRId64 "] session closed", con_id);
263263
HTTP_SUM_DYN_STAT(http_transactions_per_client_con, transact_count);
264-
if (read_state != HCS_ACTIVE_READER) {
265-
// donot double decrement
264+
if (conn_decrease) {
265+
// do not double decrement
266266
HTTP_DECREMENT_DYN_STAT(http_current_client_connections_stat);
267267
}
268268
read_state = HCS_CLOSED;

0 commit comments

Comments
 (0)