Skip to content

Commit

Permalink
Max socket timeout on websocket start
Browse files Browse the repository at this point in the history
  • Loading branch information
trikko committed May 21, 2024
1 parent 8c11313 commit 3bb2f38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/serverino/worker.d
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ struct Worker

Socket s = new Socket(AddressFamily.UNIX, SocketType.STREAM);

// Wait for the process to start (max 50ms)
// Wait for the process to start
while(true)
{
try
Expand All @@ -571,7 +571,7 @@ struct Worker
Thread.sleep(100.usecs);
++tries;

if(tries > 100) break;
if(tries > 200) break;
else continue;
}

Expand Down

0 comments on commit 3bb2f38

Please sign in to comment.