From 4948f9a47e2e3acd45304946126a8b1391b0c23b Mon Sep 17 00:00:00 2001 From: Andrea Fontana Date: Thu, 26 Dec 2024 22:46:41 +0100 Subject: [PATCH] RCVLOWAT is not supported on Windows --- source/serverino/daemon.d | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/serverino/daemon.d b/source/serverino/daemon.d index 0a68833..cd1873c 100644 --- a/source/serverino/daemon.d +++ b/source/serverino/daemon.d @@ -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;