You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
|
4 months ago |
| .. |
|
lwip_pbuf.c
|
replace uIP with adapted lwIP TCP stack (lwip_tcp)
|
5 months ago |
|
lwip_pbuf.h
|
replace uIP with adapted lwIP TCP stack (lwip_tcp)
|
5 months ago |
|
lwip_tcp.c
|
add lwIP state diagnostics: tcp_alloc cwnd/sndbuf, proxy_poll_cb cwnd/unsent/unacked, active_pcbs counter
|
4 months ago |
|
lwip_tcp.h
|
proxy: implement CLOSE and FIN relay protocol
|
4 months ago |
|
lwip_tcp_in.c
|
add lwIP TCP stack test with fixes: rcv_wnd tracking, FIN compensation, tmr_phase dual-counter, trace ring buffer, stats counters
|
4 months ago |
|
lwip_tcp_opts.h
|
replace uIP with adapted lwIP TCP stack (lwip_tcp)
|
5 months ago |
|
lwip_tcp_out.c
|
tcp proxy/lwip: move per-packet traffic logs from INFO/ERROR to TRACE
|
4 months ago |
|
lwip_tcp_priv.h
|
add lwIP TCP stack test with fixes: rcv_wnd tracking, FIN compensation, tmr_phase dual-counter, trace ring buffer, stats counters
|
4 months ago |