Date: Sat, 8 Nov 2003 19:30:26 -0800 From: John-Mark Gurney <gurney_j@efn.org> To: Igor Sysoev <is@rambler-co.ru> Cc: Alan Cox <alc@cs.rice.edu> Subject: Re: Update: Debox sendfile modifications Message-ID: <20031109033026.GF558@funkthat.com> In-Reply-To: <Pine.BSF.4.21.0311051208160.3103-100000@is.park.rambler.ru> References: <20031105022737.J1370@odysseus.silby.com> <Pine.BSF.4.21.0311051208160.3103-100000@is.park.rambler.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Igor Sysoev wrote this message on Wed, Nov 05, 2003 at 12:31 +0300: > I think it can done in the following way - a socket should have flag > that says that sendfile() had started the reading a page. layer violation... how do you know that the fd is a socket? > select()/poll()/kevent() should check this flag before the checking > a socket buffer space. When the page had been read this flag is reset. So, what about using sendfile on a pipe? are you going to teach sendfile how to interact with pipe's too? What about other fd types? If you made this a fd transparent operation then I would agree with it. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031109033026.GF558>