Skip to content

Commit b8302f1

Browse files
committed
Windows fix
1 parent e415f1f commit b8302f1

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

Source/Shared/TcpSocket.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,6 @@ TcpSocket::TcpSocket(unsigned short port)
8080
int timeout = 5000; // 5 seconds timeout
8181
setsockopt(_sock, SOL_SOCKET, SO_RCVTIMEO, (const char*)&timeout, sizeof(timeout));
8282
setsockopt(_sock, SOL_SOCKET, SO_SNDTIMEO, (const char*)&timeout, sizeof(timeout));
83-
84-
DWORD dwMode = PIPE_NOWAIT;
85-
if (!SetNamedPipeHandleState(hNamedPipe, &dwMode, NULL, NULL)) {
86-
std::cerr << "Failed to set named pipe handle state." << std::endl;
87-
CloseHandle(hNamedPipe);
88-
return 1;
89-
}
9083
#else
9184
// Don't crash on pipe errors
9285
signal(SIGPIPE, SIG_IGN);

0 commit comments

Comments
 (0)