From 0e43fe3b42650cb1e7581a9fef3cd7695e8ec102 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 1 Feb 2012 23:49:24 +0000
Subject: [PATCH] shorter sleep before connect

---
 Common/GmshSocket.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Common/GmshSocket.h b/Common/GmshSocket.h
index 9b1746a2f3..d47f5f4eac 100644
--- a/Common/GmshSocket.h
+++ b/Common/GmshSocket.h
@@ -249,7 +249,7 @@ class GmshClient : public GmshSocket {
   {
     // slight delay to make sure that the socket is bound by the
     // server before we attempt to connect to it
-    _Sleep(100);
+    _Sleep(10);
     if(strstr(sockname, "/") || strstr(sockname, "\\") || !strstr(sockname, ":")){
 #if !defined(WIN32) || defined(__CYGWIN__)
       // UNIX socket (testing ":" is not enough with Windows paths)
-- 
GitLab