Dean Gaudet wrote:
> consider the case where you're responding to a pair of pipelined HTTP/1.1
> requests. with the HPUX and BSD sendfile() APIs you end up forcing a
> packet boundary between the two responses. this is likely to result in
> one small packet on the wire after each response.
>
> with the linux TCP_CORK API you only get one trailing small packet
Tony Finch tells me that BSD also supports TCP_CORK; in fact, it had it first.
He wrote:
> BSDs that include T/TCP (pretty much all of them since 1995) have an
> option called TCP_NOPUSH which is equivalent to Linux's TCP_CORK. A
> pity the Linux people didn't know about it when they implemented their
> version.
>
> #if defined(TCP_CORK) && !defined(TCP_NOPUSH)
> #define TCP_NOPUSH TCP_CORK
> #endif
Can anyone verify it resolves the problem Dean pointed out?
Now, Linus, does that make you hate BSD less? :-)
- Dan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue Jan 23 2001 - 21:00:16 EST