Proxy: Tun: Implement idle connection timeouts#5521
Proxy: Tun: Implement idle connection timeouts#5521
Conversation
Account for configure PolicyManager policy for connection idle timeouts
|
|
|
ok. perfect, then I'll just implement net.Conn for udp, and depend on that dispatcher will call .Close() on it when idle timeout is reached. |
|
不过 UDP 的话那个“自动清理来源二元组 map”还得留着,因为 outbound 非 UoT 时可能不会把 close 传导过来, |
|
Well, adding more changes don't make sense then... The whole idea was that udp will be pure net.Conn, only implementing Read/Write/Close/... and lifecycle is controlled the handler, which will close connections that don't have any bytes for some time... |
|
|
|
Tested it with xHTTP outbound, outbound signal the connections to be closed without a need for additional lifecycle handling on inbound side. |
|
|
Consider PolicyManager configuration