From: Colin Hirsch <share-lkml@think42.com>
To: linux-kernel@vger.kernel.org
Subject: Re: Error binding socket: address already in use
Date: Thu, 14 Sep 2006 09:15:45 +0200 [thread overview]
Message-ID: <20060914071545.GA28332@p15097255.pureserver.info> (raw)
In-Reply-To: <1158161015.13977.27.camel@localhost.localdomain>
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
next prev parent reply other threads:[~2006-09-14 7:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-13 14:41 Peter Lezoch
2006-09-13 14:46 ` Jan Engelhardt
2006-09-13 14:46 ` David M. Lloyd
2006-09-13 15:23 ` Alan Cox
2006-09-14 7:15 ` Colin Hirsch [this message]
2006-09-13 15:33 ` linux-os (Dick Johnson)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060914071545.GA28332@p15097255.pureserver.info \
--to=share-lkml@think42.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mail@cohi.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®