chandu valesh writes:
>  Hi James Carlson & all,
> 
> James Carlson  writes:
>  > Yes; the IPPROTO_TCP, TCP_NODELAY socket option can be used to change
> > the way TCP deals with small writes from the application.
> Are there any other parameters that will control/affect the Nagles
> algorithm apart form TCP_NODELAY? i.e
> 1) Till when TCP buffers data ? does it buffer till the application
> data accumulates to fit into a segment?
> 2) is there any timer till when the buffering will happen (if the data
> is not fit into a segmet) and later sent on wire?

Generally, the answers here are "no."

Nagle's algorithm causes the sender to avoid emitting additional short
packets after sending one such message, until you get either an ACK or
you are able to send a full segment.

See RFCs 793, 1122 (section 4.2.3.4), and 2581 for the details.

In any event, I think you're barking up the wrong tree.  TCP is a
byte-stream protocol.  You cannot and *should not* try to control its
behavior in an attempt to preserve record boundaries.  Such an attempt
just won't work.

-- 
James Carlson, Solaris Networking              <[EMAIL PROTECTED]>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to