]> xenbits.xensource.com Git - libvirt.git/commitdiff
phyp: too much timeout when polling socket
authorEduardo Otubo <otubo@linux.vnet.ibm.com>
Wed, 11 Nov 2009 10:53:16 +0000 (11:53 +0100)
committerDaniel Veillard <veillard@redhat.com>
Wed, 11 Nov 2009 10:53:16 +0000 (11:53 +0100)
* src/phyp/phyp_driver.c: a 10s timeout on socket availability was way
  too long, reduced to 1ms

src/phyp/phyp_driver.c

index b73ea101c4a3274c8543c47a883f90e334838b88..c73834cc9906897a9fbf2c4c81ba69ebaff05a72 100644 (file)
@@ -2174,8 +2174,8 @@ waitsocket(int socket_fd, LIBSSH2_SESSION * session)
     fd_set *readfd = NULL;
     int dir;
 
-    timeout.tv_sec = 10;
-    timeout.tv_usec = 0;
+    timeout.tv_sec = 0;
+    timeout.tv_usec = 1000;
 
     FD_ZERO(&fd);