mirror of
https://github.com/curl/curl.git
synced 2026-08-03 02:40:29 +03:00
http2: remove the stream from the hash in stream_close callback
... and suddenly things work much better!
This commit is contained in:
parent
3e8a5d88a5
commit
5871affc7a
2 changed files with 6 additions and 11 deletions
10
lib/url.c
10
lib/url.c
|
|
@ -2886,16 +2886,6 @@ void Curl_getoff_all_pipelines(struct SessionHandle *data,
|
|||
conn->readchannel_inuse = FALSE;
|
||||
if(Curl_removeHandleFromPipeline(data, conn->send_pipe) && send_head)
|
||||
conn->writechannel_inuse = FALSE;
|
||||
|
||||
if(conn->httpversion == 20) {
|
||||
/* delete this handle from the stream hash */
|
||||
struct HTTP *stream = data->req.protop;
|
||||
if(stream && Curl_hash_delete(&conn->proto.httpc.streamsh,
|
||||
&stream->stream_id,
|
||||
sizeof(stream->stream_id))) {
|
||||
infof(conn->data, "Failed to remove handle from h2 stream hash!!\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void signalPipeClose(struct curl_llist *pipeline, bool pipe_broke)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue