From 4916936751690773edf9195717408a379b0c24dd Mon Sep 17 00:00:00 2001 From: Eduardo Otubo Date: Wed, 11 Nov 2009 11:53:16 +0100 Subject: [PATCH] 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 --- src/phyp/phyp_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.47.2