httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Rodent of Unusual Size)
Subject Re: [PATCH] to enhance bugdb.cgi
Date Fri, 25 Apr 1997 09:14:08 GMT
>From the fingers of Brian Behlendorf flowed the following:
>On Thu, 24 Apr 1997, Rodent of Unusual Size wrote:
>>     That's one problem.  Another is that if your script sends headers
>>     and then pauses for a while before generating anything else, the
>>     headers may sit in Perl's buffer and not make it to the server,
>>     resulting in a timeout ("malformed headers").
>Hmm, I'd like evidence this has happened.  bugdb.cgi isn't like lightning but
>it hasn't been so slow as to timeout in my experience.... when has it done so
>for you?  I don't see evidence of failure in recent Apache logs.

    I started getting semi-reproducible errors when I was testing the
    copy in my ~coar directory on hyperreal.  I turned it on as a matter
    of course, and the problems diminished.

>Turning it on can mean a tremendous impact on the number of packets sent to the
>user, since every print() is now also a flush().  If you're concerned
>specifically about headers why not just put a flush() after the headers end?

    That's what I've done in the latest incarnation: turned on autoflush
    before the headers, and back off again after they're sent.

>As for line endings - in previous CGI scripts I've done

    Yup, that's in there too, with Roy's added 'g'.

>bugdb.cgi is certainly no paragon of programming, it's on at least its third
>generation as a repurposed hackneyed piece of code.

    I'm not trying to rewrite it, critique it, gore its ox, nor cast
    nasturtiums at it..  It works.

    #ken    :-)}

View raw message