Commit 85033bcf authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

http2: support > 64bit sized uploads

... by making sure we don't count down the "upload left" counter when the
uploaded size is unknown and then it can be allowed to continue forever.

Fixes #996
parent af2d679e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -945,6 +945,7 @@ static ssize_t data_source_read_callback(nghttp2_session *session,
    memcpy(buf, stream->upload_mem, nread);
    stream->upload_mem += nread;
    stream->upload_len -= nread;
    if(data_s->state.infilesize != -1)
      stream->upload_left -= nread;
  }