From: Eduardo Otubo Date: Wed, 11 Nov 2009 10:53:16 +0000 (+0100) Subject: phyp: too much timeout when polling socket X-Git-Tag: v0.7.3~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4916936751690773edf9195717408a379b0c24dd;p=thirdparty%2Flibvirt.git phyp: too much timeout when polling socket * src/phyp/phyp_driver.c: a 10s timeout on socket availability was way too long, reduced to 1ms --- diff --git a/src/phyp/phyp_driver.c b/src/phyp/phyp_driver.c index b73ea101c4..c73834cc99 100644 --- a/src/phyp/phyp_driver.c +++ b/src/phyp/phyp_driver.c @@ -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);