58e45e92322c831bc47cb0a5baa28675dc1c676e
- CLOSE: admin connection teardown (drain queues, shutdown, free) Server: handle_close — pause read, drain rq (discard), drain wq to socket, shutdown, free Client: handle_close — drain to_lwip/tx_buf (discard), tcp_close pcb, free ERROR calls handle_close on both sides - FIN: transparent relay event through ETCP (TCP_PROXY_SUBCMD_FIN=0x06) Server: on_fin_cb relays FIN_MSG to client, on_flushed_cb relays FIN_MSG Server: handle_fin relays FIN to remote socket via shutdown(SHUT_WR) Client: recv_cb relays FIN_MSG to exit, tx_waiter_cb relays FIN_MSG Client: handle_fin relays FIN to local TCP via tcp_shutdown(pcb,0,1) - new tcp_conn_pause_read() in tcp_io (EPOLLIN off + cancel waiter) - poll_cb simplified: remove tun_closed&&rem_closed wait block - conn_free drains close_pending before free on both sides - handle_data WARN→INFO for drops after close - tcp_shutdown declared in lwip_tcp.h
Languages
C
64.6%
C++
17.1%
Kotlin
9.4%
HTML
5.8%
Python
1.2%
Other
1.7%