mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
h2: stay a client if a client
This commit is contained in:
parent
81bd0f8e55
commit
e560d2c049
2 changed files with 3 additions and 3 deletions
|
@ -2029,8 +2029,8 @@ lws_h2_parser(struct lws *wsi, unsigned char *in, lws_filepos_t inlen,
|
|||
|
||||
case LWS_H2_FRAME_TYPE_DATA:
|
||||
|
||||
lwsl_info("%s: LWS_H2_FRAME_TYPE_DATA: fl 0x%x\n",
|
||||
__func__, h2n->flags);
|
||||
// lwsl_info("%s: LWS_H2_FRAME_TYPE_DATA: fl 0x%x\n",
|
||||
// __func__, h2n->flags);
|
||||
|
||||
/*
|
||||
* let the network wsi live a bit longer if
|
||||
|
|
|
@ -1172,7 +1172,7 @@ rops_alpn_negotiated_h2(struct lws *wsi, const char *alpn)
|
|||
|
||||
ah = wsi->http.ah;
|
||||
|
||||
lws_role_transition(wsi, LWSIFR_SERVER, LRS_H2_AWAIT_PREFACE,
|
||||
lws_role_transition(wsi, lwsi_role_client(wsi) ? LWSIFR_CLIENT : LWSIFR_SERVER, LRS_H2_AWAIT_PREFACE,
|
||||
&role_ops_h2);
|
||||
|
||||
/* http2 union member has http union struct at start */
|
||||
|
|
Loading…
Add table
Reference in a new issue