Skip to content

Conversation

@Benjscho
Copy link
Contributor

@Benjscho Benjscho commented Oct 7, 2024

Add getters for tcp settings to Endpoints. The purpose for this is that connect_with_connector doesn't set TCP settings on the socket, because it's using a provided connector. In the cases where a library is creating a custom TCP connection, we want to be able to respect user tcp settings, in particular connection timeout. Adding these getters allows this.

Motivation

The purpose for this is that connect_with_connector doesn't set TCP settings on the socket, because it's using a provided connector. In the cases where a library is creating a custom TCP connection, we want to be able to respect user tcp settings, in particular connection timeout. Adding these getters allows this.

Solution

Adds simple getters for existing tcp settings on an endpoint.

Add getters for tcp settings to Endpoints. The purpose for this is that
`connect_with_connector` doesn't set TCP settings on the socket, because
it's using a provided connector. In the cases where a library is creating
a custom TCP connection, we want to be able to respect user tcp
settings, in particular connection timeout. Adding these getters allows
this.
@tottoto tottoto self-requested a review October 9, 2024 13:19
@djc djc added this pull request to the merge queue Oct 14, 2024
@djc
Copy link
Contributor

djc commented Oct 14, 2024

Thanks!

Merged via the queue into hyperium:master with commit cb534a7 Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants