[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090105080321.GY32491@kernel.dk>
Date: Mon, 5 Jan 2009 09:03:22 +0100
From: Jens Axboe <jens.axboe@...cle.com>
To: David Miller <davem@...emloft.net>
Cc: buytenh@...tstofly.org, ben@...s.com, opurdila@...acom.com,
jarkao2@...il.com, netdev@...r.kernel.org
Subject: Re: splice from half-closed socket returning -EAGAIN
On Sun, Jan 04 2009, David Miller wrote:
> From: Lennert Buytenhek <buytenh@...tstofly.org>
> Date: Mon, 5 Jan 2009 07:47:29 +0100
>
> > tcp: don't mask EOF and socket errors on nonblocking splice receive
> >
> > Currently, setting SPLICE_F_NONBLOCK on splice from a TCP socket
> > results in masking of EOF (RDHUP) and error conditions on the socket
> > by an -EAGAIN return. Move the NONBLOCK check in tcp_splice_read()
> > to be after the EOF and error checks to fix this.
> >
> > Signed-off-by: Lennert Buytenhek <buytenh@...vell.com>
>
> This change looks like the perfect fix for this problem.
>
> I'll apply this, thanks Lennert!
Indeed, you can add my acked-by as well if you want.
--
Jens Axboe
--
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