lkml.org 
[lkml]   [2004]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: UDP recvmsg blocks after select(), 2.6 bug?
    On Sat, Oct 16, 2004 at 12:24:33PM +0200, Willy Tarreau wrote:
    > On Fri, Oct 15, 2004 at 03:42:55PM -0700, Robert White wrote:
    > > > As I asked in a previous mail in this overly long thread, why not
    > > > returning zero bytes at all. It is perfectly valid to receive an
    > > > UDP packet with 0
    > > Zero bytes is "end of file". Don't go trying to co-opt end of file.
    > > That way lies madness and despair.
    > Please explain me what "end of file" means with UDP. If your UDP-based app
    > expects to receive a zero when the other end stops transmitting, then it
    > might wait for a very long time. As opposed to TCP, there's no FIN control
    > flag to tell the remote host that you sent your last packet.

    He means zero byte packet. :-)

    mark

    --
    mark@mielke.cc/markm@ncf.ca/markm@nortelnetworks.com __________________________
    . . _ ._ . . .__ . . ._. .__ . . . .__ | Neighbourhood Coder
    |\/| |_| |_| |/ |_ |\/| | |_ | |/ |_ |
    | | | | | \ | \ |__ . | | .|. |__ |__ | \ |__ | Ottawa, Ontario, Canada

    One ring to rule them all, one ring to find them, one ring to bring them all
    and in the darkness bind them...

    http://mark.mielke.cc/

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:07    [W:0.026 / U:0.108 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site