summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-08-28 13:12:39 +0200
committerSimon Rettberg2019-08-28 13:12:39 +0200
commit2129c93fa7afe741705372196267fa3d62fdb537 (patch)
treebf46ece86d03ab5f98111fd54503bfe3ad912c50
parenti[SERVER] Include new pretendClient in config dump (diff)
downloaddnbd3-2129c93fa7afe741705372196267fa3d62fdb537.tar.gz
dnbd3-2129c93fa7afe741705372196267fa3d62fdb537.tar.xz
dnbd3-2129c93fa7afe741705372196267fa3d62fdb537.zip
[FUSE] Increase socket timeout from 1 to 3 secondsHEADmaster
-rw-r--r--src/fuse/connection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fuse/connection.c b/src/fuse/connection.c
index fc9f05b..98b1d36 100644
--- a/src/fuse/connection.c
+++ b/src/fuse/connection.c
@@ -141,7 +141,7 @@ bool connection_init(const char *hosts, const char *lowerImage, const uint16_t r
if ( i >= altIndex ) {
// Additional iteration - no corresponding slot in altservers, this
// is just so we can make a final calls with longer timeout
- sock = sock_multiConnect( cons, NULL, 400, 1000 );
+ sock = sock_multiConnect( cons, NULL, 400, 3000 );
if ( sock == -2 ) {
logadd( LOG_ERROR, "Could not connect to any host" );
sock = -1;
@@ -151,7 +151,7 @@ bool connection_init(const char *hosts, const char *lowerImage, const uint16_t r
if ( altservers[i].host.type == 0 )
continue;
// Try to connect - 100ms timeout
- sock = sock_multiConnect( cons, &altservers[i].host, 100, 1000 );
+ sock = sock_multiConnect( cons, &altservers[i].host, 100, 3000 );
}
if ( sock == -2 || sock == -1 )
continue;