upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/btfrv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/btfrv.cpp')
-rw-r--r--src/btfrv.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/btfrv.cpp b/src/btfrv.cpp
index 812d077..0d02ca8 100644
--- a/src/btfrv.cpp
+++ b/src/btfrv.cpp
@@ -101,7 +101,7 @@ static SOCKET ConnectTo(const char* host, unsigned short port)
101 101
102 // Apply a short timeout only for the connect() and initial handshake so an 102 // Apply a short timeout only for the connect() and initial handshake so an
103 // unresponsive relay doesn't block the thread. Once the tunnel is live the 103 // unresponsive relay doesn't block the thread. Once the tunnel is live the
104 // timeout is cleared — a forwarding pipe must block indefinitely on recv(). 104 // timeout is cleared -- a forwarding pipe must block indefinitely on recv().
105#ifdef _WIN32 105#ifdef _WIN32
106 DWORD tvShort = 10000; 106 DWORD tvShort = 10000;
107 setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, (const char*)&tvShort, sizeof(tvShort)); 107 setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, (const char*)&tvShort, sizeof(tvShort));
@@ -118,7 +118,7 @@ static SOCKET ConnectTo(const char* host, unsigned short port)
118 } 118 }
119 freeaddrinfo(res); 119 freeaddrinfo(res);
120 120
121 // Clear the timeout — the socket is now a live tunnel and must not 121 // Clear the timeout -- the socket is now a live tunnel and must not
122 // time out when idle. recv() will block until data arrives or peer closes. 122 // time out when idle. recv() will block until data arrives or peer closes.
123#ifdef _WIN32 123#ifdef _WIN32
124 DWORD tvOff = 0; 124 DWORD tvOff = 0;