diff --git a/Common/GmshSocket.h b/Common/GmshSocket.h
index 66f98bcf0dd663ffde5edb19751f9cd83593c623..9b1746a2f355ca135e0b5b6b65af7612646f1271 100644
--- a/Common/GmshSocket.h
+++ b/Common/GmshSocket.h
@@ -409,7 +409,7 @@ class GmshServer : public GmshSocket{
     }
 
     // wait until we get data
-    int ret = NonBlockingWait(tmpsock, 0.5, timeout);
+    int ret = NonBlockingWait(tmpsock, 0.001, timeout);
     if(ret){
       CloseSocket(tmpsock);
       if(ret == 2){