]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common source file change not applicable to open-vm-tools.
authorOliver Kurth <okurth@vmware.com>
Tue, 26 May 2020 22:32:55 +0000 (15:32 -0700)
committerOliver Kurth <okurth@vmware.com>
Tue, 26 May 2020 22:32:55 +0000 (15:32 -0700)
open-vm-tools/lib/poll/poll.c

index da2db361dded4ed5c41b7e91174dd6085317db87..6c762a101e5e3ec2339281dfd5ad870cfee0338d 100644 (file)
@@ -42,7 +42,6 @@
    #include <winsock2.h>
    #include <ws2tcpip.h>
    #include "err.h"
-   #include "preference.h"
 #endif
 
 /*
@@ -502,9 +501,7 @@ PollSocketPairConnect(Bool blocking,           // IN: blocking socket?
 
       if (connect(*s, addr, addrlen) == SOCKET_ERROR) {
          WSAPOLLFD pollFds[1];
-         /* wait timeout seconds */
-         unsigned int timeout = Preference_GetLong(3,
-            "pref.wsa.socket.pair.connect.timeout.seconds") * 1000;
+         unsigned int timeout = 3 * 1000; /* wait 3 seconds */
          int ret = WSAGetLastError();
          if (ret != WSAEWOULDBLOCK) {
             /* connection failed */