Browse Source
Because the poll/select loop may pause for 100msec before actually doing a send, and we have no way to force the loop awake, try sending from the calling thread if the queue is empty. Also, disable nagle as all sends should be either full messages or unfinished sends. This shaves an average of ~1 minute or so off of my accumulated runtime, and 10-15 seconds off of actual runtime.0.16
Cory Fields
7 years ago
1 changed files with 9 additions and 1 deletions
Loading…
Reference in new issue