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.

Thanks!
[]'s

--
Eduardo Otubo
Software Engineer
Linux Technology Center
IBM Systems & Technology Group
Mobile: +55 19 8135 0885
[email protected]
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;
 
     FD_ZERO(&fd);
--
Libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to