merge checks on Win/non-Win

This commit is contained in:
Viktor Szakats 2026-06-08 04:22:33 +02:00
parent 613056afc3
commit d2687af73a
No known key found for this signature in database
3 changed files with 23 additions and 42 deletions

View file

@ -109,7 +109,7 @@ size_t tool_read_cb(char *buffer, size_t sz, size_t nmemb, void *userdata)
#ifndef CURL_WINDOWS_UWP
rc = sread(per->infd, buffer, curlx_uztosi(sz * nmemb));
if(rc < 0) {
if(SOCKERRNO == SOCKEWOULDBLOCK) {
if(SOCK_EWOULDBLOCK_EAGAIN(SOCKERRNO)) {
errno = 0;
config->readbusy = TRUE;
return CURL_READFUNC_PAUSE;