- No longer need fPIC patch. - Removed sparc patch. - Fixed VNC module link line (from upstream).
21 lines
750 B
Diff
21 lines
750 B
Diff
--- vnc-4_1-unixsrc/common/network/TcpSocket.cxx.restart 2005-03-04 09:02:21.000000000 +0000
|
|
+++ vnc-4_1-unixsrc/common/network/TcpSocket.cxx 2005-03-04 09:03:05.000000000 +0000
|
|
@@ -140,10 +140,14 @@
|
|
}
|
|
|
|
// Attempt to connect to the remote host
|
|
- if (connect(sock, (struct sockaddr *)&addr, sizeof(addr)) != 0) {
|
|
- int e = errorNumber;
|
|
- closesocket(sock);
|
|
- throw SocketException("unable to connect to host", e);
|
|
+ for (;;) {
|
|
+ if (connect(sock, (struct sockaddr *)&addr, sizeof(addr)) != 0) {
|
|
+ int e = errorNumber;
|
|
+ if (e == EINTR)
|
|
+ continue;
|
|
+ closesocket(sock);
|
|
+ throw SocketException("unable to connect to host", e);
|
|
+ } else break;
|
|
}
|
|
|
|
// Disable Nagle's algorithm, to reduce latency
|