summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-09-30 19:40:15 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-09-30 19:41:41 (GMT)
commitd0081aeea512cc367a1aa9939693d8247b0571af (patch)
tree30510b936a89ccd0d167fbc934c62ec2f2c92a3c /3rdParty/LibMiniUPnPc
parent1b255f6ba90847240b92126deb5ea0174ad269b0 (diff)
downloadswift-contrib-d0081aeea512cc367a1aa9939693d8247b0571af.zip
swift-contrib-d0081aeea512cc367a1aa9939693d8247b0571af.tar.bz2
Increment timeout on UPNP.
Diffstat (limited to '3rdParty/LibMiniUPnPc')
-rw-r--r--3rdParty/LibMiniUPnPc/src/miniupnpc/connecthostport.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/3rdParty/LibMiniUPnPc/src/miniupnpc/connecthostport.c b/3rdParty/LibMiniUPnPc/src/miniupnpc/connecthostport.c
index 76e8e37..7afd2b1 100644
--- a/3rdParty/LibMiniUPnPc/src/miniupnpc/connecthostport.c
+++ b/3rdParty/LibMiniUPnPc/src/miniupnpc/connecthostport.c
@@ -85,13 +85,13 @@ int connecthostport(const char * host, unsigned short port)
}
#ifdef MINIUPNPC_SET_SOCKET_TIMEOUT
/* setting a 3 seconds timeout for the connect() call */
- timeout.tv_sec = 3;
+ timeout.tv_sec = 5;
timeout.tv_usec = 0;
if(setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(struct timeval)) < 0)
{
PRINT_SOCKET_ERROR("setsockopt");
}
- timeout.tv_sec = 3;
+ timeout.tv_sec = 5;
timeout.tv_usec = 0;
if(setsockopt(s, SOL_SOCKET, SO_SNDTIMEO, &timeout, sizeof(struct timeval)) < 0)
{
@@ -175,13 +175,13 @@ int connecthostport(const char * host, unsigned short port)
continue;
#ifdef MINIUPNPC_SET_SOCKET_TIMEOUT
/* setting a 3 seconds timeout for the connect() call */
- timeout.tv_sec = 3;
+ timeout.tv_sec = 5;
timeout.tv_usec = 0;
if(setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(struct timeval)) < 0)
{
PRINT_SOCKET_ERROR("setsockopt");
}
- timeout.tv_sec = 3;
+ timeout.tv_sec = 5;
timeout.tv_usec = 0;
if(setsockopt(s, SOL_SOCKET, SO_SNDTIMEO, &timeout, sizeof(struct timeval)) < 0)
{