mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:23:39 +03:00
http2: move state-init from creation to pre-transfer
To make sure that the HTTP/2 state is initialized correctly for duplicated handles. It would otherwise easily generate "spurious" PRIORITY frames to get sent over HTTP/2 connections when duplicated easy handles were used. Reported-by: Daniel Silverstone Fixes #4303 Closes #4442
This commit is contained in:
parent
02c6b984cb
commit
8a00560de2
3 changed files with 2 additions and 2 deletions
|
|
@ -1510,6 +1510,7 @@ CURLcode Curl_pretransfer(struct Curl_easy *data)
|
|||
}
|
||||
}
|
||||
#endif
|
||||
Curl_http2_init_state(&data->state);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue