Re: [PATCH] tcp: do not promote SPLICE_F_NONBLOCK to socket O_NONBLOCK

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Evgeniy Polyakov
Date: Thursday, July 17, 2008 - 7:21 am

Hi Octavian.

On Thu, Jul 17, 2008 at 04:33:49PM +0300, Octavian Purdila (opurdila@ixiacom.com) wrote:

Existing behaviour was selected to be able to have a progress if socket
does not have enough data to fill the pipe. With your change if socket
is not opened with non-blocking mode reading will block not matter if
SPLICE_F_NONBLOCK is set or not. This is a quite serious break of the
overall idea behind SPLICE_F_NONBLOCK.

Socket will not be marked as non-blocking if SPLICE_F_NONBLOCK is
specified, only splicing will used non-blocking reading, any read via
recv() will use existing socket flags.

-- 
	Evgeniy Polyakov
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] tcp: do not promote SPLICE_F_NONBLOCK to socke ..., Evgeniy Polyakov, (Thu Jul 17, 7:21 am)
Re: [PATCH] tcp: do not promote SPLICE_F_NONBLOCK to socke ..., Evgeniy Polyakov, (Thu Jul 17, 10:41 am)
Re: [PATCH] tcp: do not promote SPLICE_F_NONBLOCK to socke ..., Octavian Purdila, (Fri Jul 18, 10:04 am)
Re: [PATCH] tcp: do not promote SPLICE_F_NONBLOCK to socke ..., Evgeniy Polyakov, (Fri Jul 18, 10:53 am)
Re: [PATCH] tcp: do not promote SPLICE_F_NONBLOCK to socke ..., Octavian Purdila, (Fri Jul 18, 11:16 am)
Re: [PATCH] tcp: do not promote SPLICE_F_NONBLOCK to socke ..., Evgeniy Polyakov, (Fri Jul 18, 11:35 am)
Re: [PATCH] tcp: do not promote SPLICE_F_NONBLOCK to socke ..., Octavian Purdila, (Fri Jul 18, 11:43 am)