heiher / hev-socks5-server

A high-performance socks5 server for Unix (Linux/Android/BSD/macOS)
MIT License
185 stars 33 forks source link

Could you please explain connect-timeout and read-write timeout? #35

Closed LindaFerum closed 10 months ago

LindaFerum commented 10 months ago

Could you please explain in more detail connect-timeout and read-write timeout ?

Specific context: suppose I'm trying to proxy a TCP connection that's supposed to be long-lived and receive only rather occasional keepalives (like android GMS service's "heartbeat" which often beats like once 10 minutes or so) and don't expect to roam that much

Which value should I increase, if any?

heiher commented 10 months ago

connect-timeout: The maximum waiting time that from the beginning of connecting to the remote host to the successful establishment of the connection.

read-write-timrout: After the connection is established, the maximum idle time without transmission in both directions.

Which value should I increase, if any?

read-write-timeout

LindaFerum commented 10 months ago

Thanks!