Skip to content
Snippets Groups Projects
  • Tatsuhiro Tsujikawa's avatar
    cde0cf7c
    Fix bug that HTTP/2 hangs if whole response body is read with headers · cde0cf7c
    Tatsuhiro Tsujikawa authored
    For HTTP/2, we may read up everything including responde body with
    header fields in Curl_http_readwrite_headers. If no content-length is
    provided, curl waits for the connection close, which we emulate it
    using conn->proto.httpc.closed = TRUE. The thing is if we read
    everything, then http2_recv won't be called and we cannot signal the
    HTTP/2 stream has closed. As a workaround, we return nonzero from
    data_pending to call http2_recv.
    cde0cf7c
    History
    Fix bug that HTTP/2 hangs if whole response body is read with headers
    Tatsuhiro Tsujikawa authored
    For HTTP/2, we may read up everything including responde body with
    header fields in Curl_http_readwrite_headers. If no content-length is
    provided, curl waits for the connection close, which we emulate it
    using conn->proto.httpc.closed = TRUE. The thing is if we read
    everything, then http2_recv won't be called and we cannot signal the
    HTTP/2 stream has closed. As a workaround, we return nonzero from
    data_pending to call http2_recv.