On Sun, Nov 12, 2000 at 06:54:37PM +1100, James Morris wrote:
> On Sun, 12 Nov 2000, Scott Howard wrote:
> 
> > TCP_CORK is yet another example of Linux bloat.
> 
> No, quite the opposite.
> 
> The purpose of TCP_CORK is so that applications using sendfile() don't
> get hammered by Nagle, which would otherwise need to be handled by 
> bloating the sendfile() implementation with header parameters.

OK, so maybe "bloat" is a little overstated, but the point remains that
TCP_CORK is not generally the correct way to this if you're not using
something like sendfile().
Even with sendfile, TCP_NODELAY would stop nagle being a problem, although
TCP_CORK would sometimes save an additional packet being sent.

  Scott


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to