Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions iocore/net/UnixNetVConnection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1393,6 +1393,10 @@ UnixNetVConnection::migrateToCurrentThread(Continuation *cont, EThread *t)
this->ep.stop();
this->do_io_close();

// The do_io_close will decrement the current stat count but we are creating a new vc.
// Increment the currently open stat here so the net current count is unchanged
NET_SUM_GLOBAL_DYN_STAT(net_connections_currently_open_stat, 1);

// Create new VC:
if (save_ssl) {
SSLNetVConnection *sslvc = static_cast<SSLNetVConnection *>(sslNetProcessor.allocate_vc(t));
Expand Down