lkml.org 
[lkml]   [2000]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: TCP push missing with writev()
       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/

    \
     
     \ /
      Last update: 2005-03-22 12:49    [W:0.032 / U:0.068 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site