diff options
author | Jordan Schidlowsky <jordan@winterpixel.com> | 2022-01-29 00:29:27 +0100 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-02-05 02:22:43 +0100 |
commit | 1ec96bc2063579f8e2f73944974cadcb15e348b0 (patch) | |
tree | 99f68e3602f3fcc151fcbe6ce03aa04c4d93d76f /modules/websocket/wsl_client.h | |
parent | 3db1d689ce11507d9597bb434891da95168f2c69 (diff) | |
download | redot-engine-1ec96bc2063579f8e2f73944974cadcb15e348b0.tar.gz |
[Net] Non-blocking WebSocket hostname resolution.
Hostname is now resolved during poll in WebSocketClient (wslay) to avoid
blocking during connect.
An attempt is still made to find the hostname in the resolver cache.
Diffstat (limited to 'modules/websocket/wsl_client.h')
-rw-r--r-- | modules/websocket/wsl_client.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/websocket/wsl_client.h b/modules/websocket/wsl_client.h index 4839d7ab9b..d846e6be00 100644 --- a/modules/websocket/wsl_client.h +++ b/modules/websocket/wsl_client.h @@ -63,10 +63,11 @@ private: String _key; String _host; - int _port; - Array ip_candidates; + uint16_t _port; + Array _ip_candidates; Vector<String> _protocols; bool _use_ssl = false; + IP::ResolverID _resolver_id = IP::RESOLVER_INVALID_ID; void _do_handshake(); bool _verify_headers(String &r_protocol); |