Sometimes the first call hangs because the server is not completely up

This commit is contained in:
Andras Fekete
2024-06-06 10:38:11 -04:00
parent 8d63fb5fe5
commit fbb2737c2a

View File

@ -279,7 +279,7 @@ check_server_ready() {
server_ready=0
while [ "$counter" -lt 20 ]; do
echo -e "waiting for $server_name ready..."
echo -e Checking | nc localhost $server_port
echo -e Checking | nc -w 5 localhost $server_port
nc_result=$?
if [ $nc_result = 0 ]
then