Re: more thoughts on a new jail() system call

From: Thunder from the hill (thunder@ngforever.de)
Date: Thu Jul 18 2002 - 23:55:58 EST


Hi,

On 19 Jul 2002, James Antill wrote:
> The more general spelling is FIONREAD, and I generally find that only
> crap network applications need to use it. Good ones just try and read
> a largish amount of data into a buffer.

That doesn't matter as long as you haven't got any idea on how much data
will be read. Especially relaying between two completely different hosts,
possibly unknown protocols, you don't have a chance to know who will send
next. Without TIOCINQ you'll almost be shot if you have received lots of
lots of stuff from the client and expect any response from the server. You
just won't get it.

Give me another version of the appended piece of code that won't use
ioctl, and I'll consider an acknowledgement.

                                                        Regards,
                                                        Thunder

-- 
(Use http://www.ebb.org/ungeek if you can't decode)
------BEGIN GEEK CODE BLOCK------
Version: 3.12
GCS/E/G/S/AT d- s++:-- a? C++$ ULAVHI++++$ P++$ L++++(+++++)$ E W-$
N--- o?  K? w-- O- M V$ PS+ PE- Y- PGP+ t+ 5+ X+ R- !tv b++ DI? !D G
e++++ h* r--- y- 
------END GEEK CODE BLOCK------


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jul 23 2002 - 22:00:29 EST