summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-06-10 15:04:07 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-06-10 15:04:07 +0100
commitdcfe1c8ebdaf0067563d25d93c3f2f9ebbba3c09 (patch)
tree85a012d0063d81339c1acb5ea21feecac6c6ed95 /src
parent761b30f86894100eb94b5e928a981140d912e7b4 (diff)
downloadtelepathy-gabble-dcfe1c8ebdaf0067563d25d93c3f2f9ebbba3c09.tar.gz
SOCKS5: decrease the connect timeout
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.
Diffstat (limited to 'src')
-rw-r--r--src/bytestream-socks5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bytestream-socks5.c b/src/bytestream-socks5.c
index 6c3c82aea..e50b66c4d 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
{