Skip to content

feat(client): support local bind for HttpConnector - #1

Open
kw217 wants to merge 8 commits into
0.11.xfrom
add-local-bind-stopgap
Open

kw217 wants to merge 8 commits into
0.11.xfrom
add-local-bind-stopgap

Conversation

@kw217

@kw217 kw217 commented May 9, 2018 •

Copy link
Copy Markdown

Temporary version - awaiting Hyper 0.12 for proper version (see issue 1498).

THIS PR IS BEING USED TO TEST A GITHUB REVIEW PLUGIN - please ignore it

Add set_local_address to the HttpConnector.
This configures the client to bind the socket to a local address of
the host before it connects to the destination. This is useful on
hosts which have multiple network interfaces, to ensure the request is
issued over a specific interface.

@kw217 kw217 self-assigned this May 9, 2018
Comment thread examples/bound_client.rs
@@ -0,0 +1,57 @@
//#![deny(warnings)]

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why add this when it is commented out?

Temporary version - awaiting Hyper 0.12 for proper version (see issue 1498).

Add `set_local_address` to the `HttpConnector`.
This configures the client to bind the socket to a local address of
the host before it connects to the destination. This is useful on
hosts which have multiple network interfaces, to ensure the request is
issued over a specific interface.
@kw217
kw217 force-pushed the add-local-bind-stopgap branch from f185898 to 0b21608 Compare May 10, 2018 14:06
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.

2 participants