Skip to content

Commit

Permalink
Merge branch 'master' into fix/req-resp-max-streams-failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jxs authored Jun 4, 2024
2 parents 661e140 + 68301b8 commit 762137c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions protocols/request-response/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
- Report failure when streams are at capacity.
See [PR 5417](https://github.com/libp2p/rust-libp2p/pull/5417).

- Report dial IO errors to the user.
See [PR 5429](https://github.com/libp2p/rust-libp2p/pull/5429).

## 0.26.2

- Deprecate `Behaviour::add_address` in favor of `Swarm::add_peer_address`.
Expand Down
9 changes: 4 additions & 5 deletions protocols/request-response/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,10 @@ where
}
StreamUpgradeError::Apply(e) => void::unreachable(e),
StreamUpgradeError::Io(e) => {
tracing::debug!(
"outbound stream for request {} failed: {e}, retrying",
message.request_id
);
self.requested_outbound.push_back(message);
self.pending_events.push_back(Event::OutboundStreamFailed {
request_id: message.request_id,
error: e,
});
}
}
}
Expand Down

0 comments on commit 762137c

Please sign in to comment.