mirror of
https://github.com/curl/curl.git
synced 2026-05-06 09:17:28 +03:00
parent
2cf19c245e
commit
d1145df24d
1 changed files with 4 additions and 0 deletions
4
lib/ws.c
4
lib/ws.c
|
|
@ -1384,6 +1384,10 @@ CURL_EXTERN CURLcode curl_ws_send(CURL *d, const void *buffer_arg,
|
|||
if(n < 0 && (result != CURLE_AGAIN))
|
||||
goto out;
|
||||
ws->sendbuf_payload += Curl_bufq_len(&ws->sendbuf) - prev_len;
|
||||
if(!ws->sendbuf_payload) {
|
||||
result = CURLE_AGAIN;
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
||||
/* flush, blocking when in callback */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue