mirror of
https://github.com/curl/curl.git
synced 2026-07-23 16:47:15 +03:00
sws: use SOCKERRNO, not errno
Reported-by: Gisle Vanem
This commit is contained in:
parent
1a9a99adf9
commit
81cb255cb3
1 changed files with 1 additions and 1 deletions
|
|
@ -1204,7 +1204,7 @@ static int send_doc(curl_socket_t sock, struct httprequest *req)
|
|||
retry:
|
||||
written = swrite(sock, buffer, num);
|
||||
if(written < 0) {
|
||||
if((EWOULDBLOCK == errno) || (EAGAIN == errno)) {
|
||||
if((EWOULDBLOCK == SOCKERRNO) || (EAGAIN == SOCKERRNO)) {
|
||||
wait_ms(10);
|
||||
goto retry;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue