Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions libretro-common/net/net_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -703,23 +703,11 @@ static void net_http_conn_pool_remove_expired(void)
{
if (!entry->in_use && FD_ISSET(entry->fd, &fds))
{
char buf[4096];
bool err = false;
#ifdef HAVE_SSL
if (entry->ssl && entry->ssl_ctx)
ssl_socket_receive_all_nonblocking(entry->ssl_ctx, &err, buf, sizeof(buf));
else
#endif
socket_receive_all_nonblocking(entry->fd, &err, buf, sizeof(buf));

if (!err)
continue;

/* if it's not in use and it's reaadable we assume that means it's closed without checking recv */
if (prev)
prev->next = entry->next;
else
conn_pool = entry->next;
/* if it's not in use and it's reaadable we assume that means it's closed without checking recv */
net_http_conn_pool_free(entry);
entry = prev ? prev->next : conn_pool;
}
Expand Down
Loading