Skip to content

Commit

Permalink
Fix performance bottlenecks with nt fork redbean
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Mar 21, 2022
1 parent d57f87d commit e5314de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tool/net/redbean.c
Original file line number Diff line number Diff line change
Expand Up @@ -6943,7 +6943,9 @@ static void HandleConnection(size_t i) {
return;
}
}
if (!pid) CloseServerFds();
if (!pid && !IsWindows()) {
CloseServerFds();
}
VERBOSEF("(srvr) accept %s via %s", DescribeClient(), DescribeServer());
HandleMessages();
DEBUGF("(stat) %s closing after %,ldµs", DescribeClient(),
Expand Down

0 comments on commit e5314de

Please sign in to comment.