You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2002/04/17 17:49:06 UTC

DO NOT REPLY [Bug 8211] New: - Need to get unbuffered output from SSI scripts in 2.0.x

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8211>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8211

Need to get unbuffered output from SSI scripts in 2.0.x

           Summary: Need to get unbuffered output from SSI scripts in 2.0.x
           Product: Apache httpd-2.0
           Version: 2.0.35
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_include
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: twb0@lymenet.org


The FAQ addresses buffered output for CGI scripts (which are not buffered), 
but not for SSI (which *is* buffered).  In previous releases (i.e. 1.3.x) SSI 
scripts were unbuffered.  Is there a way to make 2.0.x SSI scripts unbuffered as 
well?

Regards,
-Tom


CGI/SSI FAQ #4: How can I get my script's output without Apache buffering it? 
Why doesn't my server push work? 

of Apache 1.3, CGI scripts are essentially not buffered. Every time your script 
does a "flush" to output data, that data gets relayed on to the client. Some 
scripting languages, for example Perl, have their own buffering for output - 
this can be disabled by setting the $| special variable to 1. Of course this 
does increase the overall number of packets being transmitted, which can result 
in a sense of slowness for the end user.

Prior to 1.3, you needed to use "nph-" scripts to accomplish non-buffering.  
Today, the only difference between nph scripts and normal scripts is that nph 
scripts require the full HTTP headers to be sent.