From 0b9ee38db65088eabda767a434f342d67b7e9d68 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 21 May 2016 13:44:53 +0900 Subject: [PATCH] nghttpx: Handle corner case where session is going down just after ACK recved --- src/shrpx_live_check.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/shrpx_live_check.cc b/src/shrpx_live_check.cc index 5cb687e0..c700267e 100644 --- a/src/shrpx_live_check.cc +++ b/src/shrpx_live_check.cc @@ -533,6 +533,11 @@ int LiveCheck::on_read(const uint8_t *data, size_t len) { LOG(INFO) << "No more read/write for this session"; } + // If we have SETTINGS ACK already, we treat this success. + if (settings_ack_received_) { + return 0; + } + return -1; }