--- Begin Message ---
Package: libc6
Version: 2.2.4-7
Severity: normal
If aio_read has been called for a socket and then closing the socket
is attempted with close, close succeeds (returns zero), but the connection
is not really closed until the remote end sends something completing the
pending aio_read. aio_cancel returns AIO_NOTCANCELED and does not do anything.
This is a problem in server applications: If the server is implemented in
such a way that it always listens for incoming data, it cannot close the
connection.
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux dwim 2.4.6 #1 SMP Fri Jul 20 14:09:46 EEST 2001 i686
Locale: LANG=C, LC_CTYPE=C
--- End Message ---
--- Begin Message ---
- To: Jussi Lahdenniemi <jussi.lahdenniemi@ionific.com>
- Cc: 123252-done@bugs.debian.org
- Subject: Re: libc6: close does not work on sockets with pending aio
- From: Aurelien Jarno <aurelien@aurel32.net>
- Date: Sun, 22 Apr 2007 00:19:35 +0200
- Message-id: <20070421221935.GA21688@volta.aurel32.net>
- In-reply-to: <45E68979.4030307@ionific.com>
- References: <E16DOkD-0002Bl-00@dwim.ionific.com> <20070208095318.GA3990@mad.intersec.eu> <45E68979.4030307@ionific.com>
On Thu, Mar 01, 2007 at 10:06:17AM +0200, Jussi Lahdenniemi wrote:
> Hello!
>
> Pierre HABOUZIT wrote:
> > On Mon, Dec 10, 2001 at 01:37:13PM +0200, Jussi.Lahdenniemi@ionific.com wrote:
> >> Package: libc6
> >> Version: 2.2.4-7
> >> Severity: normal
> >>
> >> If aio_read has been called for a socket and then closing the socket
> >> is attempted with close, close succeeds (returns zero), but the connection
> >> is not really closed until the remote end sends something completing the
> >> pending aio_read. aio_cancel returns AIO_NOTCANCELED and does not do anything.
> >>
> >> This is a problem in server applications: If the server is implemented in
> >> such a way that it always listens for incoming data, it cannot close the
> >> connection.
> >
> > Is this still the case ? if yes, could you provide some kind of way to
> > reproduce the problem ?
>
> I don't know whether this still is the case or not - I haven't been
> working with this piece of software for five years ro so...
>
Ok, I am therefore closing the bug. Please feel free to reopen it if you
can reproduce it with a recent version of the glibc.
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
--- End Message ---