haxetink / tink_tcp

TCP everywhere!
MIT License
13 stars 6 forks source link

Two changes to tink.tcp.Connection #7

Closed dfadev closed 7 years ago

dfadev commented 8 years ago

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.