1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-03 00:38:44 +00:00

net_http - Temp fix for cheevos crash (#14742) (#14899)

* net_http - Temp fix for cheevos crash (#14742)

Don't use new timeout/poll code for cheevos http requests

* net_http - Typo fix in comment
This commit is contained in:
retroNUC 2023-01-24 22:36:17 +00:00 committed by GitHub
parent b5244cbfe7
commit 4ad9c7e020
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -440,7 +440,19 @@ static int net_http_new_socket(struct http_connection_t *conn)
fd = -1;
goto done;
}
if (ssl_socket_connect(conn->sock_state.ssl_ctx, addr, true, true)
/* TODO: Properly figure out what's going wrong when the newer
timeout/poll code interacts with mbed and winsock
https://github.com/libretro/RetroArch/issues/14742 */
/* Temp fix, don't use new timeout/poll code for cheevos http requests */
bool timeout = true;
#ifdef __WIN32
if (!strcmp(conn->domain, "retroachievements.org\0"))
timeout = false;
#endif
if (ssl_socket_connect(conn->sock_state.ssl_ctx, addr, timeout, true)
< 0)
{
fd = -1;