Re: TCP push missing with writev()

From: David S. Miller (davem@redhat.com)
Date: Thu Nov 30 2000 - 19:08:30 EST


   Date: Fri, 1 Dec 2000 00:15:45 +0000 (GMT)
   From: Ben Mansell <ben@zeus.com>

   Paranoia check: can this bug occur with writev() and other
   combinations of sizes, or is it only when there is a 0-length
   buffer in there?

Only the 0-length buffer at the end of the iovec can trigger this
problem. The PSH bit check during writes is basically:

        if (we are emptying the current iovec entry &&
            no more iovecs to process)
                set PSH bit

Zero length iovec entries do not even make it to this test
since the zero length makes the loop this test is within
never execute.

Later,
David S. Miller
davem@redhat.com
-
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 : Thu Nov 30 2000 - 21:00:26 EST