Evgeny
58e45e9232
proxy: implement CLOSE and FIN relay protocol
- 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
2026-06-04 16:02:32 +03:00
..
2026-06-02 21:53:51 +03:00
2026-06-02 21:53:51 +03:00
2026-04-24 14:07:41 +03:00
2026-04-24 14:39:12 +03:00
2026-06-03 18:51:12 +03:00
2026-06-03 18:51:12 +03:00
2026-06-03 16:24:46 +03:00
2026-06-03 02:06:09 +03:00
2026-04-21 17:41:45 +03:00
2026-04-21 17:41:45 +03:00
2026-04-21 17:41:45 +03:00
2026-04-25 12:38:05 +03:00
2026-05-10 00:05:23 +03:00
2026-05-10 00:05:23 +03:00
2026-05-10 00:05:23 +03:00
2026-05-10 00:05:23 +03:00
2026-04-14 02:03:59 +03:00
2026-04-14 02:03:59 +03:00
2026-02-13 18:12:26 +03:00
2026-02-13 18:12:26 +03:00
2026-05-10 14:00:49 +03:00
2026-05-10 14:00:49 +03:00
2026-04-07 14:03:40 +03:00
2026-04-07 10:42:13 +03:00
2026-06-04 16:02:32 +03:00
2026-06-04 16:02:32 +03:00
2026-05-29 01:11:37 +03:00
2026-05-29 01:11:37 +03:00
2026-06-04 01:57:10 +03:00
2026-06-03 16:24:46 +03:00
2026-02-15 01:40:17 +03:00
2026-02-15 01:40:17 +03:00