increase max_socket_tries to 10 as #470

This commit is contained in:
Isaac Connor 2014-07-11 10:51:24 -04:00
parent f33b127e7e
commit eb5f299512
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ switch ( $_REQUEST['command'] )
} }
$remSockFile = ZM_PATH_SOCKS.'/zms-'.sprintf("%06d",$_REQUEST['connkey']).'s.sock'; $remSockFile = ZM_PATH_SOCKS.'/zms-'.sprintf("%06d",$_REQUEST['connkey']).'s.sock';
$max_socket_tries = 3; $max_socket_tries = 10;
while ( !file_exists($remSockFile) && $max_socket_tries-- ) //sometimes we are too fast for our own good, if it hasn't been setup yet give it a second. while ( !file_exists($remSockFile) && $max_socket_tries-- ) //sometimes we are too fast for our own good, if it hasn't been setup yet give it a second.
sleep(1); sleep(1);