Skip to content

Conversation

@SolidWallOfCode
Copy link
Member

@SolidWallOfCode SolidWallOfCode commented Apr 7, 2018

Control of the local IP address for outbound connections should (1) be documented and (2) work for HTTP/2 just as for HTTP. This moves the support for that down to the ProxyClientSession and ProxyClientTransaction because it's common for all subclasses.

new_session->host_res_style = ats_host_res_from(client_ip->sa_family, options.host_res_preference);
new_session->outbound_ip4 = options.outbound_ip4;
new_session->outbound_ip6 = options.outbound_ip6;
new_session->outbound_port = options.outbound_port;
Copy link
Contributor

Choose a reason for hiding this comment

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

Curious, why not just have a "new_session->options = options" ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Historical inertia would be my guess. When I first started mucking with this I had no idea what I was doing, so I followed the existing copies. At this point, I'd lean more toward having the NetVC track the Accept object and not copy at all. It would be a useful clean up project for a mentored beginner.

Copy link
Contributor

Choose a reason for hiding this comment

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

Make it so #1. File an Issue so we don't forget ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Stumbled across this while merging in this change locally. Didn't see an issue for this, so created #3489.

Copy link
Member

@maskit maskit left a comment

Choose a reason for hiding this comment

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

I don't have any concern from a perspective of H2 (and QUIC).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants