mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
hyper: fix EOF handling on input
We ran out of disc space due to an infinite loop with debug logging Fixes #11377 Closes #11385 Reported-by: Dan Fandrich
This commit is contained in:
parent
4e88024f0c
commit
def99e011e
@ -73,8 +73,6 @@ size_t Curl_hyper_recv(void *userp, hyper_context *ctx,
|
||||
|
||||
DEBUGF(infof(data, "Curl_hyper_recv(%zu)", buflen));
|
||||
result = Curl_read(data, conn->sockfd, (char *)buf, buflen, &nread);
|
||||
if(!result && !nread)
|
||||
result = CURLE_AGAIN;
|
||||
if(result == CURLE_AGAIN) {
|
||||
/* would block, register interest */
|
||||
DEBUGF(infof(data, "Curl_hyper_recv(%zu) -> EAGAIN", buflen));
|
||||
|
@ -69,12 +69,6 @@ run 1: foobar and so on fun!
|
||||
<- Mutex unlock
|
||||
-> Mutex lock
|
||||
<- Mutex unlock
|
||||
%if hyper
|
||||
-> Mutex lock
|
||||
<- Mutex unlock
|
||||
-> Mutex lock
|
||||
<- Mutex unlock
|
||||
%endif
|
||||
run 1: foobar and so on fun!
|
||||
-> Mutex lock
|
||||
<- Mutex unlock
|
||||
|
Loading…
Reference in New Issue
Block a user