Skip to content

Commit

Permalink
RCVLOWAT is not supported on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
trikko committed Dec 26, 2024
1 parent 744711d commit 4948f9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/serverino/daemon.d
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ package class WorkerInfo

accepted.setOption(SocketOptionLevel.SOCKET, SocketOption.SNDBUF, 64*1024);
accepted.setOption(SocketOptionLevel.SOCKET, SocketOption.RCVBUF, 64*1024);
accepted.setOption(SocketOptionLevel.SOCKET, SocketOption.RCVLOWAT, 1);

version(Windows) { }
else accepted.setOption(SocketOptionLevel.SOCKET, SocketOption.RCVLOWAT, 1);


// Wait for the worker to wake up.
ubyte[1] data;
Expand Down

0 comments on commit 4948f9a

Please sign in to comment.