-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(iroh): Allow customising the TransportConfig for connections
Previously the TransportConfig was hardcoded for the client (client/server in QUIC terminology: client initiates the connection, server accepts the connection). This rendered some customisations on the server-side, as supported by the Builder, impossible since the client would negotiate different limits. Specifically the QUIC keep-alives were at a 1s or faster interval while the connection timeout was at 30s or less. This adds a new API marked as experimental which allows customising the transport config for clients. Secondly it also respects any custom TransportConfig set in the Builder for clients as well as servers. This is not a behaviour change since the parameters set by default are now moved to the Builder and due to how these are negotiated it does not matter that the server will now also have the same values set by default. Closes #2872.
- Loading branch information
Showing
1 changed file
with
34 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters