You seem to think that Nagle's algorithm isn't a tradeoff. It is: it increases bandwidth, but also increases latency. Fairly often, you don't care about bandwidth one way or the other, but want to decrease latency.
It's like saying "automatic is picking the wrong gear for this application, how do I put this car into second?".
Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).
| [reply] [Watch: Dir/Any] |
Because the hotel parking attendants drive at 80 mph and you had to sue it to recoup the repair costs. :)
--
$Stalag99{"URL"}="http://stalag99.keenspace.com";
| [reply] [Watch: Dir/Any] |
In order to get rid of latency (however small) in a case where bandwidth isn't really a concern. "efficiently" can mean different things, depending on what you want to accomplish. :)
| [reply] [Watch: Dir/Any] |
Randal,
While your question is a valid one to ask, your reply is disappointing, and IMHO, misplaced.
The fact that the OP knows what Nagle's Algorithm is, has sought and found a (less than satisfactory) solution in the Cookbook (which also describes a reason to disable it), makes me think the OP might have some idea as to "Why?".
I'm not trying to pick on you, I'm just pointing out that this is an example of what I'll call the Bunjee Reply, ala Dilbert. Sort of a That's a not-so-brilliant-question see-ya later kind of response. It makes me wonder if someone has posted the corollary to How (Not) To Ask A Question, namely, How (Not) to Answer a Question?
If I'm off base here, someone let me know.
-QM
--
Quantum Mechanics: The dreams stuff is made of
| [reply] [Watch: Dir/Any] |