1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

h2: stream binding: do not try to join existing connection until migrated

This commit is contained in:
Andy Green 2020-01-17 18:54:44 +00:00
parent 068a54a340
commit 6f8b606811

View file

@ -1439,7 +1439,7 @@ lws_vhost_active_conns(struct lws *wsi, struct lws **nwsi, const char *adsin)
* h2: in usable state already: just use it without
* going through the queue
*/
if (w->client_h2_alpn &&
if (w->client_h2_alpn && w->client_mux_migrated &&
(lwsi_state(w) == LRS_H2_WAITING_TO_SEND_HEADERS ||
lwsi_state(w) == LRS_ESTABLISHED)) {