Re: Data corruption issue with splice() on 2.6.27.10

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Willy Tarreau
Date: Monday, January 19, 2009 - 2:53 am

On Mon, Jan 19, 2009 at 09:39:21AM +0100, Lennert Buytenhek wrote:

I proceeded the same way : if EAGAIN and data still in the pipe, then
stop polling.


In fact this is fixed now. tcp_splice_read() returns all available data,
which somewhat hides problem #1. I'm running with 23 kB in a push/pull
method all the time, so it remains optimal.


Yes I saw your fix, it was indeed very annoying because the only workaround
I found was to perform an recv(MSG_PEEK) on the socket after each EAGAIN
to check whether the connection was closed or not.

For these reasons, I'd really love to see the few recent fixes backported
to -stable ASAP. It will boost splice() adoption among products.

Regards,
Willy

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Data corruption issue with splice() on 2.6.27.10, Willy Tarreau, (Wed Dec 24, 8:28 am)
Re: Data corruption issue with splice() on 2.6.27.10, Jarek Poplawski, (Tue Jan 6, 1:54 am)
Re: Data corruption issue with splice() on 2.6.27.10, Willy Tarreau, (Tue Jan 6, 2:41 am)
Re: Data corruption issue with splice() on 2.6.27.10, Jarek Poplawski, (Tue Jan 6, 3:01 am)
Re: Data corruption issue with splice() on 2.6.27.10, Willy Tarreau, (Tue Jan 6, 3:04 am)
Re: Data corruption issue with splice() on 2.6.27.10, Willy Tarreau, (Tue Jan 6, 8:57 am)
Re: Data corruption issue with splice() on 2.6.27.10, Ben Mansell, (Tue Jan 6, 10:42 am)
Re: Data corruption issue with splice() on 2.6.27.10, Willy Tarreau, (Tue Jan 6, 11:15 am)
Re: Data corruption issue with splice() on 2.6.27.10, Evgeniy Polyakov, (Tue Jan 6, 11:32 am)
Re: Data corruption issue with splice() on 2.6.27.10, Jens Axboe, (Tue Jan 6, 11:37 am)
Re: Data corruption issue with splice() on 2.6.27.10, Willy Tarreau, (Tue Jan 6, 11:50 am)
Re: Data corruption issue with splice() on 2.6.27.10, Willy Tarreau, (Tue Jan 6, 11:55 am)
Re: Data corruption issue with splice() on 2.6.27.10, Willy Tarreau, (Tue Jan 6, 11:38 pm)
Re: Data corruption issue with splice() on 2.6.27.10, Jarek Poplawski, (Wed Jan 7, 2:39 am)
Re: Data corruption issue with splice() on 2.6.27.10, Willy Tarreau, (Wed Jan 7, 2:54 am)
Re: Data corruption issue with splice() on 2.6.27.10, Evgeniy Polyakov, (Wed Jan 7, 4:29 am)
Re: Data corruption issue with splice() on 2.6.27.10, Evgeniy Polyakov, (Wed Jan 7, 4:56 am)
Re: Data corruption issue with splice() on 2.6.27.10, Evgeniy Polyakov, (Wed Jan 7, 5:15 am)
Re: Data corruption issue with splice() on 2.6.27.10, Willy Tarreau, (Wed Jan 7, 5:22 am)
Re: Data corruption issue with splice() on 2.6.27.10, Jarek Poplawski, (Wed Jan 7, 5:31 am)
Re: Data corruption issue with splice() on 2.6.27.10, Evgeniy Polyakov, (Wed Jan 7, 5:37 am)
Re: Data corruption issue with splice() on 2.6.27.10, Jarek Poplawski, (Wed Jan 7, 5:38 am)
Re: Data corruption issue with splice() on 2.6.27.10, Willy Tarreau, (Wed Jan 7, 5:39 am)
Re: Data corruption issue with splice() on 2.6.27.10, Evgeniy Polyakov, (Wed Jan 7, 5:40 am)
Re: Data corruption issue with splice() on 2.6.27.10, Evgeniy Polyakov, (Wed Jan 7, 5:46 am)
Re: Data corruption issue with splice() on 2.6.27.10, Jarek Poplawski, (Wed Jan 7, 5:49 am)
Re: Data corruption issue with splice() on 2.6.27.10, Willy Tarreau, (Wed Jan 7, 5:52 am)
Re: Data corruption issue with splice() on 2.6.27.10, Willy Tarreau, (Wed Jan 7, 5:55 am)
Re: Data corruption issue with splice() on 2.6.27.10, Jarek Poplawski, (Wed Jan 7, 5:56 am)
Re: Data corruption issue with splice() on 2.6.27.10, Evgeniy Polyakov, (Wed Jan 7, 5:57 am)
Re: Data corruption issue with splice() on 2.6.27.10, Willy Tarreau, (Wed Jan 7, 6:00 am)
Re: Data corruption issue with splice() on 2.6.27.10, Jarek Poplawski, (Wed Jan 7, 6:02 am)
Re: Data corruption issue with splice() on 2.6.27.10, Evgeniy Polyakov, (Wed Jan 7, 6:02 am)
Re: Data corruption issue with splice() on 2.6.27.10, Willy Tarreau, (Wed Jan 7, 6:08 am)
Re: Data corruption issue with splice() on 2.6.27.10, Jarek Poplawski, (Wed Jan 7, 6:10 am)
Re: Data corruption issue with splice() on 2.6.27.10, Willy Tarreau, (Wed Jan 7, 6:15 am)
Re: Data corruption issue with splice() on 2.6.27.10, Jarek Poplawski, (Wed Jan 7, 6:22 am)
Re: Data corruption issue with splice() on 2.6.27.10, Jarek Poplawski, (Wed Jan 7, 7:01 am)
Re: Data corruption issue with splice() on 2.6.27.10, Jarek Poplawski, (Thu Jan 8, 12:16 am)
Re: Data corruption issue with splice() on 2.6.27.10, Willy Tarreau, (Thu Jan 8, 1:05 am)
Re: Data corruption issue with splice() on 2.6.27.10, Ingo Molnar, (Thu Jan 8, 7:53 am)
Re: Data corruption issue with splice() on 2.6.27.10, Ben Mansell, (Thu Jan 8, 8:16 am)
Re: Data corruption issue with splice() on 2.6.27.10, Willy Tarreau, (Thu Jan 8, 10:14 am)
Re: Data corruption issue with splice() on 2.6.27.10, Herbert Xu, (Mon Jan 12, 5:02 am)
Re: Data corruption issue with splice() on 2.6.27.10, Evgeniy Polyakov, (Mon Jan 12, 5:45 am)
Re: Data corruption issue with splice() on 2.6.27.10, Herbert Xu, (Mon Jan 12, 5:56 am)
Re: Data corruption issue with splice() on 2.6.27.10, Evgeniy Polyakov, (Mon Jan 12, 5:59 am)
Re: Data corruption issue with splice() on 2.6.27.10, Jarek Poplawski, (Mon Jan 12, 6:15 am)
Re: Data corruption issue with splice() on 2.6.27.10, Herbert Xu, (Mon Jan 12, 2:11 pm)
Re: Data corruption issue with splice() on 2.6.27.10, Herbert Xu, (Mon Jan 12, 2:12 pm)
Re: Data corruption issue with splice() on 2.6.27.10, Jarek Poplawski, (Mon Jan 19, 12:32 am)
Re: Data corruption issue with splice() on 2.6.27.10, Lennert Buytenhek, (Mon Jan 19, 1:39 am)
Re: Data corruption issue with splice() on 2.6.27.10, Willy Tarreau, (Mon Jan 19, 2:53 am)