Skip to content

Commit

Permalink
server: don't close tunnel when eof (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
liudongmiao committed Jun 12, 2024
1 parent a0be1e9 commit d5706a1
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 @@ -695,6 +695,11 @@ void raw_event_cb(struct bufferevent *raw, short event, void *tev) {
#endif
if (event & (BEV_EVENT_EOF | BEV_EVENT_ERROR)) {
LOGD("connection %u closed for wss %p, event: 0x%02x", port, tev, event);
#ifdef WSS_PROXY_SERVER
if (event & BEV_EVENT_EOF) {
return;
}
#endif
do_close_wss(tev);
} else if (event & BEV_EVENT_TIMEOUT) {
LOGW("connection %u timeout for wss %p, event: 0x%02x", port, tev, event);
Expand Down

0 comments on commit d5706a1

Please sign in to comment.