Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Net] Removed blocking network address resolution in connect_to_host in websockets #53262

Closed

Conversation

jordo
Copy link
Contributor

@jordo jordo commented Sep 30, 2021

Master pr for #53243 (untested)

Bugsquad edit: fixes #53265 for websocket clients

@jordo jordo requested a review from a team as a code owner September 30, 2021 15:24
@jordo jordo changed the title Removed blocking network address resolution in connect_to_host in web… [Net] master - Removed blocking network address resolution in connect_to_host in websockets Sep 30, 2021
@jordo
Copy link
Contributor Author

jordo commented Sep 30, 2021

fixes #53265 for websocket clients

@Faless Faless changed the title [Net] master - Removed blocking network address resolution in connect_to_host in websockets [Net] Removed blocking network address resolution in connect_to_host in websockets Dec 15, 2021
Copy link
Collaborator

@Faless Faless left a comment

Choose a reason for hiding this comment

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

I am deeply sorry for the very long review time, I have been sucked up by the work on the replication API.
This change looks okay, it is a bit of a mess that this has to be handled down in every peer separately, but it's definitely an improvement so I would merge this once the review comments are addressed.
Good work 👍

Vector<String> _protocols;
Vector<String> _original_protocols;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't understand why we need the _original_protocols.
It seems there is already the _protocols variable that could be used.

_connection = _tcp;

_key = WSLPeer::generate_key();
// TODO custom extra headers (allow overriding this too?)
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can remove this TODO since we now support extra headers (was a leftover from the other PR I guess).

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.

connect_to_host functions in network classes block on address resolution
4 participants