In windows, the socket connection is easy to be refused when concurrency more than 10. After changing the code std.posix.listen(self.internal, 0) to std.posix.listen(self.internal, 512) as Rust socket, this problem doesn't hanppen. So I suggest that adding the parameter of backlog for Socket.listen().
In windows, the socket connection is easy to be refused when concurrency more than 10. After changing the code
std.posix.listen(self.internal, 0)tostd.posix.listen(self.internal, 512)asRust socket, this problem doesn't hanppen. So I suggest that adding the parameter ofbacklogfor Socket.listen().