there is EAGAIN on Windows nowadays, but never returned by SOCKERRNO

This commit is contained in:
Viktor Szakats 2026-06-08 03:59:08 +02:00
parent 54ced2826a
commit 6e44399d4d
No known key found for this signature in database

View file

@ -942,7 +942,7 @@ static CURLcode socket_connect_result(struct Curl_easy *data,
switch(error) {
case SOCKEINPROGRESS:
case SOCKEWOULDBLOCK:
#if defined(EAGAIN) && EAGAIN != SOCKEWOULDBLOCK
#if !defined(USE_WINSOCK) && defined(EAGAIN) && EAGAIN != SOCKEWOULDBLOCK
/* On some platforms EAGAIN and EWOULDBLOCK are the
* same value, and on others they are different, hence
* the odd #if