http2: handle closed streams when uploading

Fixes #986
This commit is contained in:
Tatsuhiro Tsujikawa 2016-08-28 16:44:03 +02:00 committed by Daniel Stenberg
parent 3533def3d5
commit c3e906e9cd
2 changed files with 12 additions and 0 deletions

View file

@ -168,6 +168,7 @@ struct HTTP {
const uint8_t *pausedata; /* pointer to data received in on_data_chunk */
size_t pauselen; /* the number of bytes left in data */
bool closed; /* TRUE on HTTP2 stream close */
bool close_handled; /* TRUE if stream closure is handled by libcurl */
uint32_t error_code; /* HTTP/2 error code */
char *mem; /* points to a buffer in memory to store received data */