Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

•Re: Portably disabling Nagle's algorithm for TCP

by merlyn (Sage)
on Jan 02, 2005 at 04:09 UTC ( [id://418739]=note: print w/replies, xml ) Need Help??


in reply to Portably disabling Nagle's algorithm for TCP

That's almost always exactly the wrong thing to do. Why would you want your TCP connections to work less efficiently?

It's like saying "how do I disable all the gears above second gear in my car?"

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: Portably disabling Nagle's algorithm for TCP
by theorbtwo (Prior) on Jan 02, 2005 at 10:31 UTC

    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).

Re^2: Portably disabling Nagle's algorithm for TCP
by strredwolf (Chaplain) on Jan 02, 2005 at 06:15 UTC
    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";

Re^2: Portably disabling Nagle's algorithm for TCP
by mowgli (Friar) on Jan 02, 2005 at 22:09 UTC
    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. :)

    --
    mowgli

Re^2: Portably disabling Nagle's algorithm for TCP
by QM (Parson) on Jan 03, 2005 at 22:35 UTC
    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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://418739]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-03-28 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found