Skip to content

Commit

Permalink
Windows fix
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Sep 4, 2023
1 parent e415f1f commit b8302f1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Binary file not shown.
7 changes: 0 additions & 7 deletions Source/Shared/TcpSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,6 @@ TcpSocket::TcpSocket(unsigned short port)
int timeout = 5000; // 5 seconds timeout
setsockopt(_sock, SOL_SOCKET, SO_RCVTIMEO, (const char*)&timeout, sizeof(timeout));
setsockopt(_sock, SOL_SOCKET, SO_SNDTIMEO, (const char*)&timeout, sizeof(timeout));

DWORD dwMode = PIPE_NOWAIT;
if (!SetNamedPipeHandleState(hNamedPipe, &dwMode, NULL, NULL)) {
std::cerr << "Failed to set named pipe handle state." << std::endl;
CloseHandle(hNamedPipe);
return 1;
}
#else
// Don't crash on pipe errors
signal(SIGPIPE, SIG_IGN);
Expand Down

0 comments on commit b8302f1

Please sign in to comment.