nghttpx: Handle corner case where session is going down just after ACK recved

This commit is contained in:
Tatsuhiro Tsujikawa 2016-05-21 13:44:53 +09:00
parent a224aba577
commit 0b9ee38db6
1 changed files with 5 additions and 0 deletions

View File

@ -533,6 +533,11 @@ int LiveCheck::on_read(const uint8_t *data, size_t len) {
LOG(INFO) << "No more read/write for this session"; 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; return -1;
} }