[telepathy-gabble/master] SOCKS5: decrease the connect timeout

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Wed Jun 10 07:04:07 PDT 2009


When users are not on the same network or using IPv6, the direct
connection will always fail. Waiting 30 seconds before connecting to a
proxy is really long and is perceived by user as a problem in the FT or
stream tube. 10 seconds should be more than enough; if the connection
took more that 10 sec to establish, you'll probably have trouble to use
it any way.
---
 src/bytestream-socks5.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/bytestream-socks5.c b/src/bytestream-socks5.c
index 6c3c82a..e50b66c 100644
--- a/src/bytestream-socks5.c
+++ b/src/bytestream-socks5.c
@@ -114,7 +114,7 @@ typedef enum _Socks5State Socks5State;
 #define SOCKS5_MIN_LENGTH 6
 
 #define CONNECT_REPLY_TIMEOUT 30
-#define CONNECT_TIMEOUT 30
+#define CONNECT_TIMEOUT 10
 
 struct _Streamhost
 {
-- 
1.5.6.5



More information about the telepathy-commits mailing list