[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070221.224706.35017492.davem@davemloft.net>
Date: Wed, 21 Feb 2007 22:47:06 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: johnpol@....mipt.ru
Cc: shemminger@...ux-foundation.org, netdev@...r.kernel.org
Subject: Re: [Bug 8013] New: select for write hangs on a socket after write
returned ECONNRESET
From: Evgeniy Polyakov <johnpol@....mipt.ru>
Date: Sat, 17 Feb 2007 19:25:33 +0300
> On Fri, Feb 16, 2007 at 09:34:27PM +0300, Evgeniy Polyakov (johnpol@....mipt.ru) wrote:
> > Otherwise we can extend select output mask to include hungup too
> > (getting into account that hungup is actually output event).
>
> This is another possible way to fix select after write after connection
> reset.
>
> Signed-off-by: Evgeniy Polyakov <johnpol@....mipt.ru>
...
> #define POLLIN_SET (POLLRDNORM | POLLRDBAND | POLLIN | POLLHUP | POLLERR)
> -#define POLLOUT_SET (POLLWRBAND | POLLWRNORM | POLLOUT | POLLERR)
> +#define POLLOUT_SET (POLLWRBAND | POLLWRNORM | POLLOUT | POLLERR | POLLHUP)
> #define POLLEX_SET (POLLPRI)
POLLHUP is absolutely not maskable, this is very deeply entrenched
in the poll() semantics and definitions.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists