[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] phyp: too much timeout when polling socket

Hello all,

Since I moved to libssh2 I had noticed a weird behaviour, virsh was taking too much time to complete the operations when using phyp driver. Just found the problem, 10 seconds of timeout passed to select(). Changed to zero, since I'm just polling the socket.

Actually this patch is more important than it seems, now I can write a script (using virsh) to test all the phyp features.


Eduardo Otubo
Software Engineer
Linux Technology Center
IBM Systems & Technology Group
Mobile: +55 19 8135 0885
eotubo linux vnet ibm com
diff --git a/src/phyp/phyp_driver.c b/src/phyp/phyp_driver.c
index e9f0fec..19b46b7 100644
--- a/src/phyp/phyp_driver.c
+++ b/src/phyp/phyp_driver.c
@@ -2171,7 +2171,7 @@ waitsocket(int socket_fd, LIBSSH2_SESSION * session)
     fd_set *readfd = NULL;
     int dir;
-    timeout.tv_sec = 10;
+    timeout.tv_sec = 0;
     timeout.tv_usec = 0;

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]