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:
Stefan Eissing 2023-06-26 11:51:43 +02:00 committed by Daniel Stenberg
parent 4e88024f0c
commit def99e011e
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 0 additions and 8 deletions

View File

@ -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));

View File

@ -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