mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
http2: remove the closed check in http2_recv
With the "drained" functionality we can get here slightly asynchronously so the stream have have been closed but there is pending data left to read.
This commit is contained in:
parent
a28734be09
commit
70b5b698b0
@ -768,12 +768,15 @@ static ssize_t http2_recv(struct connectdata *conn, int sockindex,
|
||||
|
||||
(void)sockindex; /* we always do HTTP2 on sockindex 0 */
|
||||
|
||||
#if 0
|
||||
if(stream->closed) {
|
||||
/* Reset to FALSE to prevent infinite loop in readwrite_data
|
||||
function. */
|
||||
stream->closed = FALSE;
|
||||
DEBUGF(infof(data, "http2_recv2 stream found closed?\n"));
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Nullify here because we call nghttp2_session_send() and they
|
||||
might refer to the old buffer. */
|
||||
|
Loading…
Reference in New Issue
Block a user