For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > April 2004 > Can TCP_NODELAY be turned on and off in a single session?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Can TCP_NODELAY be turned on and off in a single session?
Chris Markle

2004-04-29, 3:01 am

Hi,

Can one toggle TCP_NODELAY (disable Nagle) off for part of the time during a
connection (maybe for some back and forth short protocol interaction) and
then on for another time period in the same connection (say for a more bulk
data portion of a protocol)?

Chris


Barry Margolin

2004-04-29, 3:01 am

In article <GR%jc.11458$RE1.1161892@attbi_s54>,
"Chris Markle" <cmarkle@sendmail.com> wrote:

> Can one toggle TCP_NODELAY (disable Nagle) off for part of the time during a
> connection (maybe for some back and forth short protocol interaction) and
> then on for another time period in the same connection (say for a more bulk
> data portion of a protocol)?


I can't think of any reason why not.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
David Schwartz

2004-04-29, 1:19 pm


"Chris Markle" <cmarkle@sendmail.com> wrote in message
news:GR%jc.11458$RE1.1161892@attbi_s54...

> Can one toggle TCP_NODELAY (disable Nagle) off for part of the time during
> a
> connection (maybe for some back and forth short protocol interaction) and
> then on for another time period in the same connection (say for a more
> bulk
> data portion of a protocol)?


Since Nagle has no affect on back and forth short protocol interactions,
why would you want to?

DS


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com