[curl/curl] c3eefa: c-hyper: handle body on HYPER_TASK_EMPTY

Jacob Hoffman-Andrews <[email protected]> Sat, 15 May 2021 15:49:16 -0700
Newsgroups gmane.comp.web.curl.cvs
Message-ID <curl/curl/push/refs/heads/master/[email protected]>
  Branch: refs/heads/master
  Home:   https://github.com/curl/curl
  Commit: c3eefa95c31f55657f0af422e8268d738f689066
      https://github.com/curl/curl/commit/c3eefa95c31f55657f0af422e8268d738f689066
  Author: Jacob Hoffman-Andrews <[email protected]>
  Date:   2021-05-16 (Sun, 16 May 2021)

  Changed paths:
    M lib/c-hyper.c

  Log Message:
  -----------
  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


_______________________________________________
curl-commits mailing list
[email protected]
https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-commits