First, Socket.select wants empty arrays instead of null otherwise it errors.
Second, I get better cpp performance when handling multiple sockets in non concurrent mode if I decrease the selectTimeout. A socket that has no data will pause runloop execution up to selectTimeout seconds.
First, Socket.select wants empty arrays instead of null otherwise it errors.
Second, I get better cpp performance when handling multiple sockets in non concurrent mode if I decrease the selectTimeout. A socket that has no data will pause runloop execution up to selectTimeout seconds.