1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

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

Closes #4055
This commit is contained in:
Daniel Stenberg 2019-06-20 12:30:25 +02:00
parent 972bdffb9f
commit c0c40ab075
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1758,11 +1758,10 @@ static ssize_t http2_recv(struct connectdata *conn, int sockindex,
return retlen; 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 */ the connection */
if(stream->closed) { if(stream->closed)
return http2_handle_stream_close(conn, data, stream, err); return 0;
}
*err = CURLE_AGAIN; *err = CURLE_AGAIN;
H2BUGF(infof(data, "http2_recv returns AGAIN for stream %u\n", H2BUGF(infof(data, "http2_recv returns AGAIN for stream %u\n",
stream->stream_id)); stream->stream_id));