Skip to content

Commit

Permalink
server: don't close tunnel when eof
Browse files Browse the repository at this point in the history
  • Loading branch information
liudongmiao committed Jun 12, 2024
1 parent 7625f96 commit a0be1e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common.c
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,11 @@ static void raw_event_cb_wss(struct bufferevent *raw, short event, void *wev) {
port = get_peer_port(tev);
#endif
LOGD("connection %u closed for wss %p, event: 0x%02x", port, tev, event);
#ifdef WSS_PROXY_SERVER
if (event & BEV_EVENT_EOF) {
return;
}
#endif
if (tev && tev->cbarg) {
close_wss(tev, close_reason_raw, event);
} else {
Expand Down

0 comments on commit a0be1e9

Please sign in to comment.