-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SOCKS proxy 5 second handshake/auth/connect hard-coded timeout #267
Labels
Comments
I submitted a patch for that: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26962.html |
5andr0
added a commit
to 5andr0/openvpn
that referenced
this issue
Sep 16, 2023
Connections over SOCKS are timed out after hard-coded 5 sec, which causes problems when using slow proxies like Tor. With this patch, establishing a SOCKS connection uses the timeout set by server-poll-timeout (default: 120s). It uses the same logic that was implemented for HTTP proxies, which includes the SOCKS handshake for the timeout. Github: fixes OpenVPN#267
I can confirm that the patch works great. |
cron2
pushed a commit
that referenced
this issue
Jun 19, 2024
So far --server-poll-timeout was only applied for HTTP proxies, apply it also to SOCKS proxies. This removes the default 5 second socks connect timeout which can be too small depending on network setup and replaces it with the configurable overall connect timeout (default 120 seconds). Trac: #328 Github: fixes #267 Change-Id: I2b109f8c551c23045a1be355778b08f0fd4d309f Signed-off-by: 5andr0 <sandro.trianni@gmail.com> Tested-By: ValdikSS <valdikss@gmail.com> Acked-by: Frank Lichtenheld <frank@lichtenheld.com> Message-Id: <20240315162011.1661139-1-frank@lichtenheld.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28408.html Signed-off-by: Gert Doering <gert@greenie.muc.de> (cherry picked from commit b3a68b8)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
OpenVPN 2.5, 2.6 and master have a hard-coded timeout of 5 seconds for SOCKS communications, which may not be enough for slow proxies, such as when the connection is performed over Tor.
To Reproduce
socks-proxy 127.0.0.1 9050
Expected behavior
Proxy timeout follow
--server-poll-timeout
valueActual behavior
Socks code has a 5 second hard-coded timeout in numerous places
openvpn/src/openvpn/socks.c
Line 95 in 9c52e0c
openvpn/src/openvpn/socks.c
Line 194 in 9c52e0c
openvpn/src/openvpn/socks.c
Line 312 in 9c52e0c
The text was updated successfully, but these errors were encountered: