Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 28863 invoked by uid 6000); 16 Aug 1999 21:11:26 -0000 Received: (qmail 28836 invoked from network); 16 Aug 1999 21:11:17 -0000 Received: from eastwood.aldigital.algroup.co.uk (194.128.162.193) by taz.hyperreal.org with SMTP; 16 Aug 1999 21:11:17 -0000 Received: from freeby.ben.algroup.co.uk (freeby.ben.algroup.co.uk [193.133.15.6]) by eastwood.aldigital.algroup.co.uk (8.8.8/8.6.12) with ESMTP id VAA20382 for ; Mon, 16 Aug 1999 21:10:30 GMT Received: from algroup.co.uk (naughty.ben.algroup.co.uk [193.133.15.107]) by freeby.ben.algroup.co.uk (8.6.12/8.6.12) with ESMTP id WAA17199 for ; Mon, 16 Aug 1999 22:10:54 +0100 Message-ID: <37B87E46.6DDF37D2@algroup.co.uk> Date: Mon, 16 Aug 1999 22:10:30 +0100 From: Ben Laurie Organization: A.L. Group plc X-Mailer: Mozilla 4.6 [en-gb] (WinNT; I) MIME-Version: 1.0 To: new-httpd@apache.org Subject: Re: IOL and send_fb References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Dean Gaudet wrote: > > On Mon, 16 Aug 1999, Ben Laurie wrote: > > > OK, I sort of get this, but... it seems to me that this won't timeout > > CGIs (which it should, right?) ... if the CGI never says anything, we > > hang forever, no? > > before the blocking read the loop sets the timeout on the CGI BUFF back > to the appropriate amount (which can be different from the timeout for > the client now, btw). I've just realised that timeout == 0 means don't wait at all, not wait forever. Given this, isn't the non-blocking thing redundant (i.e. timeout == 0 implies nonblock)? > > Seems to me that the non-blocking and timeout requirements of old are > > confusing the issue. What we want is that both reads and writes time > > out, and block until they do, right? Or am I missing something? > > The only reason the non-blocking bit is in there is so that the code > can bflush the client socket before blocking on the read... that > way CGIs which stutter their output will stutter all the way to the > client. Got it. I think. Cheers, Ben. -- http://www.apache-ssl.org/ben.html "My grandfather once told me that there are two kinds of people: those who work and those who take the credit. He told me to try to be in the first group; there was less competition there." - Indira Gandhi