mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-03 01:19:38 +01:00
Prevent HTTPRequest from polling invalid client
(cherry picked from commit 9e284f68ec79be745c2cb3d3a4eead3dfcca7cca)
This commit is contained in:
parent
d39fb5c4ad
commit
d31fc4c13a
@ -101,6 +101,10 @@ Error HTTPClient::connect_to_host(const String &p_host, int p_port, bool p_ssl,
|
|||||||
} else {
|
} else {
|
||||||
// Host contains hostname and needs to be resolved to IP
|
// Host contains hostname and needs to be resolved to IP
|
||||||
resolving = IP::get_singleton()->resolve_hostname_queue_item(server_host);
|
resolving = IP::get_singleton()->resolve_hostname_queue_item(server_host);
|
||||||
|
if (resolving == IP::RESOLVER_INVALID_ID) {
|
||||||
|
status = STATUS_CANT_RESOLVE;
|
||||||
|
return ERR_CANT_RESOLVE;
|
||||||
|
}
|
||||||
status = STATUS_RESOLVING;
|
status = STATUS_RESOLVING;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user