Skip to content

Commit 4a63b93

Browse files
committed
lws-proxy: ws proxy can handle duplex
1 parent 87ab815 commit 4a63b93

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

lib/roles/ws/ops-ws.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,9 +1008,6 @@ rops_handle_POLLIN_ws(struct lws_context_per_thread *pt, struct lws *wsi,
10081008
struct lws_tokens ebuf;
10091009
char buffered = 0;
10101010
int n = 0, m, sanity = 100;
1011-
#if defined(LWS_WITH_HTTP2)
1012-
struct lws *wsi1;
1013-
#endif
10141011

10151012
if (!wsi->ws) {
10161013
lwsl_err("ws role wsi with no ws\n");
@@ -1104,19 +1101,6 @@ rops_handle_POLLIN_ws(struct lws_context_per_thread *pt, struct lws *wsi,
11041101
if (lws_is_flowcontrolled(wsi))
11051102
return LWS_HPI_RET_HANDLED;
11061103

1107-
#if defined(LWS_WITH_HTTP2)
1108-
if (wsi->mux_substream || wsi->upgraded_to_http2) {
1109-
wsi1 = lws_get_network_wsi(wsi);
1110-
if (wsi1 && lws_has_buffered_out(wsi1))
1111-
/* We cannot deal with any kind of new RX
1112-
* because we are dealing with a partial send
1113-
* (new RX may trigger new http_action() that
1114-
* expect to be able to send)
1115-
*/
1116-
return LWS_HPI_RET_HANDLED;
1117-
}
1118-
#endif
1119-
11201104
#if !defined(LWS_WITHOUT_EXTENSIONS)
11211105
/* 2: RX Extension needs to be drained
11221106
*/

0 commit comments

Comments
 (0)