lkml.org 
[lkml]   [2001]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [Fwd: [Fwd: Is sendfile all that sexy? (fwd)]]

    On Thu, 18 Jan 2001, Andrea Arcangeli wrote:

    > > {
    > > int val = 1;
    > > setsockopt(req->sock, IPPROTO_TCP, TCP_CORK,
    > > (char *)&val,sizeof(val));
    > > val = 0;
    > > setsockopt(req->sock, IPPROTO_TCP, TCP_CORK,
    > > (char *)&val,sizeof(val));
    > > }
    > >
    > > differ from what you posted. It does the same in my opinion. Maybe we are
    > > not talking about the same thing?
    >
    > The above is equivalent to SIOCPUSH _only_ if the caller wasn't using either
    > TCP_NODELAY or TCP_CORK.

    why? I can restore whatever state i want, the above is just a mechanizm to
    force the push.

    Ingo

    -
    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 13:26    [W:4.322 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site