bumptech / nitro

Queueing/Networking Library
Other
112 stars 16 forks source link

Ramp Up TCP Wake (instead of all on) #4

Open jamwt opened 11 years ago

jamwt commented 11 years ago

Right now, when an global outbound queue goes from empty to non-empty, every fd on remote pipes is made writable (even if only one is necessary to send the frame).

One tradeoff that could be considered is to only enable 1/N of the fds, and then set a timer to fire in some short time period (few hundred ms?) to enable the next 1/N. This timer would get cancelled if the queue went empty again.