Skip to content
Permalink
Browse files

http2: don't call stream-close on already closed streams

Closes #4055
  • Loading branch information...
bagder committed Jun 20, 2019
1 parent 972bdff commit c0c40ab075cdf86424dfe346a70a31b08dc651da
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/http2.c
@@ -1758,11 +1758,10 @@ static ssize_t http2_recv(struct connectdata *conn, int sockindex,

return retlen;
}
/* If stream is closed, return 0 to signal the http routine to close
/* If this stream is closed, return 0 to signal the http routine to close
the connection */
if(stream->closed) {
return http2_handle_stream_close(conn, data, stream, err);
}
if(stream->closed)
return 0;
*err = CURLE_AGAIN;
H2BUGF(infof(data, "http2_recv returns AGAIN for stream %u\n",
stream->stream_id));

0 comments on commit c0c40ab

Please sign in to comment.
You can’t perform that action at this time.