Skip to content

Commit

Permalink
* Remove SSL_ERROR_SYSCALL interception hack.
Browse files Browse the repository at this point in the history
  • Loading branch information
iProgramMC committed Jun 8, 2024
1 parent c9a4eee commit 8433f4a
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions deps/httplib/httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -7542,22 +7542,6 @@ bool ssl_connect_or_accept_nonblocking(socket_t sock, SSL *ssl,
}
// To debug an issue, setting a global:
g_latestSSLError = err;
if (err == SSL_ERROR_SYSCALL) {
char buffer[256];
MessageBox(NULL, TEXT("Yo, you're seeing the hacky handler for SSL_ERROR_SYSCALL. You're about to see the result of ERR_get_error()."), TEXT(""), MB_OK);
int ege = ERR_get_error();
snprintf(buffer, sizeof buffer, "ERR_get_error() returned %d. Now for 'errno'.", ege);
MessageBoxA(NULL, buffer, "", MB_OK);
int errn = errno;
snprintf(buffer, sizeof buffer, "errno is %d. Now for WSAGetLastError()", errn);
MessageBoxA(NULL, buffer, "", MB_OK);
int errnf = WSAGetLastError();
snprintf(buffer, sizeof buffer, "WSAGetLastError() returned %d. Now for GetLastError()", errnf);
MessageBoxA(NULL, buffer, "", MB_OK);
int errnfg = WSAGetLastError();
snprintf(buffer, sizeof buffer, "GetLastError() returned %d. Done", errnfg);
MessageBoxA(NULL, buffer, "", MB_OK);
}
return false;
}
return true;
Expand Down

0 comments on commit 8433f4a

Please sign in to comment.