genotrance / px

An HTTP proxy server to automatically authenticate through an NTLM proxy
MIT License
952 stars 98 forks source link

Websockets & Idle Timeout #121

Closed btsimonh closed 2 years ago

btsimonh commented 3 years ago

Just a note for anyone else who is using PX and websockets.

The default idle timeout may not be most appropriate of you are running websockets through px.... I was using px to test proxying from nodejs, and my websocket connection was getting disconnected every 30s because px was detecting idle on the connection.

Having set --idle=120, the websocket remains open (longer than 2 minutes.).

I'm running MQTT over the websocket, and I believe the default MQTT keepalive period is probably 60s -so it will depend on what you are running over the websocket...

The good news is that px happily tunnels wss as long as you keep it active :).

thanks again for a nice project.

genotrance commented 2 years ago

Thank you for testing and sharing this.