summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2023-03-16 18:11:44 +0100
committerDaniel Stenberg <daniel@haxx.se>2023-03-16 23:29:12 +0100
commitf24014c3ebe300b8258b5e84efe207dd861829f5 (patch)
tree8869db32e397d1d37f32e623dfd65b8d5ca21b1d /docs
parent1b9ea3239d22147e00d8cccb666cd8f9344b181e (diff)
downloadcurl-f24014c3ebe300b8258b5e84efe207dd861829f5.tar.gz
lib2305: deal with CURLE_AGAIN
The test does a slightly ugly busy-loop for this case but should be managable due to it likely being a very short moment. Mention CURLE_AGAIN in curl_ws_recv.3 Fixes #10760 Reported-by: Jay Satiro Closes #10781
Diffstat (limited to 'docs')
-rw-r--r--docs/libcurl/curl_ws_recv.34
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/libcurl/curl_ws_recv.3 b/docs/libcurl/curl_ws_recv.3
index 5c31367bb..487027145 100644
--- a/docs/libcurl/curl_ws_recv.3
+++ b/docs/libcurl/curl_ws_recv.3
@@ -59,6 +59,10 @@ Added in 7.86.0.
Returns \fBCURLE_OK\fP if everything is okay, and a non-zero number for
errors. Returns \fBCURLE_GOT_NOTHING\fP if the associated connection is
closed.
+
+Instead of blocking, the function returns \fBCURLE_AGAIN\fP. The correct
+behavior is then to wait for the socket to signal readability before calling
+this function again.
.SH "SEE ALSO"
.BR curl_easy_setopt "(3), " curl_easy_perform "(3), "
.BR curl_easy_getinfo "(3), "