titanium-web-proxy icon indicating copy to clipboard operation
titanium-web-proxy copied to clipboard

TCP connections linger open when hosts are down

Open valeriob opened this issue 4 years ago • 1 comments

Hi, i noticed that the proxy keeps a lot of connections open even to hosts that are no longer online, is there some parameter i can tune so that those connections do not linger around ? it happend already twice that proxy exausted the server ports.

Thanks

valeriob avatar Dec 27 '21 08:12 valeriob

No, there is no option in TWP. The socket is configured here: https://github.com/justcoding121/titanium-web-proxy/blob/cfddda60a60879e5fab03b4912511e0c61ca3fac/src/Titanium.Web.Proxy/Network/TcpConnection/TcpConnectionFactory.cs#L408-L411

Someting is already set. Do you know how to properly configure the socket?

honfika avatar Jan 28 '22 23:01 honfika