Skip to content

Commit

Permalink
Merge pull request #64472 from Mickeon/try-fixing-http-bug
Browse files Browse the repository at this point in the history
Prevent HTTPRequest from polling invalid client
  • Loading branch information
Faless authored Sep 7, 2022
2 parents b17a306 + 9e284f6 commit 7c99911
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/io/http_client_tcp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ Error HTTPClientTCP::connect_to_host(const String &p_host, int p_port, bool p_ss
} else {
// Host contains hostname and needs to be resolved to IP.
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;
}

Expand Down

0 comments on commit 7c99911

Please sign in to comment.