Skip to content

Commit e5314de

Browse files
committed
Fix performance bottlenecks with nt fork redbean
1 parent d57f87d commit e5314de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tool/net/redbean.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6943,7 +6943,9 @@ static void HandleConnection(size_t i) {
69436943
return;
69446944
}
69456945
}
6946-
if (!pid) CloseServerFds();
6946+
if (!pid && !IsWindows()) {
6947+
CloseServerFds();
6948+
}
69476949
VERBOSEF("(srvr) accept %s via %s", DescribeClient(), DescribeServer());
69486950
HandleMessages();
69496951
DEBUGF("(stat) %s closing after %,ldµs", DescribeClient(),

0 commit comments

Comments
 (0)