diff options
author | Jacob Hoffman-Andrews <github@hoffman-andrews.com> | 2021-05-14 20:52:17 -0700 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-05-16 00:48:14 +0200 |
commit | c3eefa95c31f55657f0af422e8268d738f689066 (patch) | |
tree | 636699dafa7ec4ff4632682c572a2181541fc851 /lib/c-hyper.c | |
parent | b09944b3ae9a70baebc491eb32e006957cbd9554 (diff) | |
download | curl-c3eefa95c31f55657f0af422e8268d738f689066.tar.gz |
c-hyper: handle body on HYPER_TASK_EMPTY
Some of the time, we get a HYPER_TASK_EMPTY response before the status
line, headers, and body have been read. Previously, that would cause us
to poll again, leading to a 1 second timeout.
The HYPER_TASK_EMPTY docs say:
The value of this task is null (does not imply an error).
So, if we receive a HYPER_TASK_EMPTY, continue on with processing the
response.
Reported-by: Kevin Burke
Fixes #7064
Closes #7070
Diffstat (limited to 'lib/c-hyper.c')
-rw-r--r-- | lib/c-hyper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/c-hyper.c b/lib/c-hyper.c index 5908f6e1f..81f589eb9 100644 --- a/lib/c-hyper.c +++ b/lib/c-hyper.c @@ -331,7 +331,7 @@ CURLcode Curl_hyper_stream(struct Curl_easy *data, infof(data, "hyperstream is done!\n"); break; } - else if(t != HYPER_TASK_RESPONSE) { + else if(t != HYPER_TASK_RESPONSE && t != HYPER_TASK_EMPTY) { *didwhat = KEEP_RECV; break; } |