aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/server/sws.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c
index 63e9fdf5c..5646f965b 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -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;
}