mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-17 03:51:22 +00:00
Fix connection keep-alive for request-response. (#1700)
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user