http: Always use non-blocking in http.

This commit is contained in:
Unknown W. Brackets
2021-05-01 11:20:05 -07:00
parent af5618705c
commit f762fbc53d
2 changed files with 8 additions and 3 deletions
-1
View File
@@ -147,7 +147,6 @@ bool Connection::Connect(int maxTries, double timeout, bool *cancelConnect) {
// Something connected. Pick the first one that did (if multiple.)
for (int sock : sockets) {
if ((intptr_t)sock_ == -1 && FD_ISSET(sock, &fds)) {
fd_util::SetNonBlocking(sock, false);
sock_ = sock;
} else {
closesocket(sock);