[lkml]   [2006]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Error binding socket: address already in use
    On Wed, Sep 13, 2006 at 04:23:35PM +0100, Alan Cox wrote:
    > Ar Mer, 2006-09-13 am 14:41 +0000, ysgrifennodd Peter Lezoch:
    > > Hi,
    > > killing a server task that is operating on a UDP socket( AF_INET,
    > > SOCK_DGRAM, IPPROTO_UDP ), leaves the socket in an unclosed state.
    > For UDP the socket closes at the point the last user of the socket
    > closes. For TCP there is a time delay mandated by the specification.
    > If you are seeing UDP sockets remain open when you kill a server make
    > sure it hasn't forked other processes and passed them the file handle.

    Additional note on REUSEADDR: The standard semantics of REUSEADDR on a
    UDP socket is to allow several sockets to bind to the same address
    simultaneously (!), i.e. if your server uses it you can start it several
    times on the same socket, which is not what one normally wants.

    Regards, Colin

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-09-14 09:19    [W:0.024 / U:54.200 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site