Re: [PATCH] tcp: set SPLICE_F_NONBLOCK after first buffer has been spliced

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Max Kellermann
Date: Thursday, November 5, 2009 - 3:57 am

On 2009/11/05 11:30, Eric Dumazet <eric.dumazet@gmail.com> wrote:

See my second email, there's a demo source.


Do you think that a splice() should block if the socket is readable
and the pipe is writable according to select()?

"The correct behavior would be to copy as much as possible, and return
without blocking.  Block only if nothing can be transferred."

Do you disagree with that?


I don't get this objection.  Please explain.
--
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:
Re: [PATCH] tcp: set SPLICE_F_NONBLOCK after first buffer ..., Max Kellermann, (Thu Nov 5, 3:57 am)