Fix connection keep-alive for request-response. (#1700)

This commit is contained in:
Roman Borschel
2020-08-13 13:13:23 +02:00
committed by GitHub
parent 7d47ada077
commit 96484fcd5e
2 changed files with 3 additions and 1 deletions

View File

@ -313,7 +313,7 @@ where
self.outbound.shrink_to_fit();
}
if self.inbound.is_empty() {
if self.inbound.is_empty() && self.keep_alive.is_yes() {
// No new inbound or outbound requests. However, we may just have
// started the latest inbound or outbound upgrade(s), so make sure
// the keep-alive timeout is preceded by the substream timeout.