From c5e9d0096ab9ec721683175482b78426562391d3 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 29 Aug 2021 17:17:36 +0900 Subject: [PATCH] nghttpx: Fix crash when ConnectionHandler is deleted while doing memcached request --- src/shrpx_memcached_connection.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shrpx_memcached_connection.cc b/src/shrpx_memcached_connection.cc index 5f9aa67e..8d33d828 100644 --- a/src/shrpx_memcached_connection.cc +++ b/src/shrpx_memcached_connection.cc @@ -115,7 +115,7 @@ MemcachedConnection::MemcachedConnection(const Address *addr, try_count_(0), connected_(false) {} -MemcachedConnection::~MemcachedConnection() { disconnect(); } +MemcachedConnection::~MemcachedConnection() { conn_.disconnect(); } namespace { void clear_request(std::deque> &q) {