Received: by taz.hyperreal.com (8.6.12/8.6.5) id XAA05275; Mon, 23 Oct 1995 23:01:37 -0700 Received: from gw.steam.com by taz.hyperreal.com (8.6.12/8.6.5) with ESMTP id XAA05268; Mon, 23 Oct 1995 23:01:34 -0700 Received: from luers.qosina.com (luers.qosina.com [206.64.187.10]) by gw.steam.com (8.6.10/8.6.9) with ESMTP id VAA24950 for ; Mon, 23 Oct 1995 21:15:09 -0700 Received: (from awm@localhost) by luers.qosina.com (8.6.11/8.6.9) id AAA11350 for new-httpd@hyperreal.com; Tue, 24 Oct 1995 00:19:30 -0400 From: Aram Mirzadeh Message-Id: <199510240419.AAA11350@luers.qosina.com> Subject: Re: Server push problem To: new-httpd@hyperreal.com Date: Tue, 24 Oct 1995 00:19:29 -0400 (EDT) In-Reply-To: <9510211646.aa16719@gonzo.ben.algroup.co.uk> from "Ben Laurie" at Oct 21, 95 04:46:19 pm X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 2370 Sender: owner-new-httpd@apache.org Precedence: bulk Reply-To: new-httpd@apache.org I didn't respond to the c.i.w.s.u posting, but I'm running over 20 different push/pull programs. Some are using graphics to display moving images, others to display series of html pages. Among others. If no one else has the script I can post it. > > >From c.i.w.s.u: > > From: mg@obd.com > Newsgroups: comp.infosystems.www.servers.unix > Subject: Problem with server push and Apache > Date: Mon, 16 Oct 1995 01:49:27 GMT > Organization: OKI Business Documentation > Message-ID: > > I am having trouble with server push using the Apache server. The server does > not appear to pass the output of the cgi script until the script exits. I have tried this > with both a perl script setting $| = 1 to force flushing of the output after each line > and a small C program using fflush() to flush the output buffer, and in both cases > the output of the script is received as a single burst of output instead of a steady > stream. I have verified this by using telnet to connect to the http port and entering > a GET command. As far as I can tell, the buffer is getting flushed because the > output appears as I expect when I use the program tee(1). > > Is there some configuration magic necessary or something special to do with > the script to force the output to essentially be unbuffered by the server? > > Morris Goldstein (mg@obd.com) > > -------------------------------------- > > This is of course, true - we buffer in great big lumps, and this will totally > stuff server push. Would anyone care to express views on these possibilities? > > 1. Don't buffer CGI output. > > 2. Recognise the MIME multipart header and look for the separator. > > 3. Add a timeout. > > 4. Do a combination of 2 & 3. > > 5. Do any of the above on a configuration file flag. > > 6. Declare server push to be a non-standard extension and ignore the problem. > > Cheers, > > Ben. > > -- > Ben Laurie Phone: +44 (181) 994 6435 > Freelance Consultant Fax: +44 (181) 994 6472 > and Technical Director Email: ben@algroup.co.uk > A.L. Digital Ltd, > London, England. > -- Aram W. Mirzadeh http://www.qosina.com/~awm/ MIS Manager Money is better than poverty, if only for financial reasons Qosina Corporation http://www.qosina.com/ Email: awm@qosina.com awm@liii.com