httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 8211] - Need to get unbuffered output from SSI scripts in 2.0.x
Date Wed, 13 Nov 2002 15:42:53 GMT
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





------- Additional Comments From twb0@lymenet.org  2002-11-13 15:42 -------
Here is the source to both buffer.shtml and buffer.cgi:

---------------------------------
buffer.shtml:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
   <TITLE>Buffered I/O test - SSI</TITLE>
   <META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-8">
</HEAD>
<BODY TEXT="#FFFFFF" BGCOLOR="#000000" LINK="#FF80FF" VLINK="#C0C0C0"
ALINK="#C0FFC0">

<H2>Buffered I/O test - SSI:</H2>
<PRE><TT>Server name: <!--#echo var="SERVER_NAME"-->
Server software: <!--#echo var="SERVER_SOFTWARE"-->
Server administrator: <!--#echo var="SERVER_ADMIN"-->
Server date (<!--#echo var="TZ"-->): <!--#echo var="DATE_LOCAL"-->
Server port: <!--#echo var="SERVER_PORT"-->
Server protocol: <!--#echo var="SERVER_PROTOCOL"-->
Server gateway interface: <!--#echo var="GATEWAY_INTERFACE"-->

3 lines of text with 5 second pauses inbetween:
</TT></PRE><BR>

<!--#exec cmd="/usr/bin/date"--><BR>
<!--#exec cmd="/usr/bin/sleep 5"-->
<!--#exec cmd="/usr/bin/date"--><BR>
<!--#exec cmd="/usr/bin/sleep 5"-->
<!--#exec cmd="/usr/bin/date"--><BR>
<!--#exec cmd="/usr/bin/sleep 5"-->

<PRE><TT>

Done!
</TT></PRE><BR>

</BODY>
</HTML>



---------------------------------
buffer.cgi:

#!/bin/sh


cat <<!EOF!
Content-type: text/html

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
   <TITLE>Buffered I/O test - CGI</TITLE>
   <META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-8">
</HEAD>
<BODY TEXT="#FFFFFF" BGCOLOR="#000000" LINK="#FF80FF" VLINK="#C0C0C0"
ALINK="#C0FFC0">

<H2>Buffered I/O test - CGI:</H2>
<PRE><TT>Server name:  $SERVER_NAME
Server software:  $SERVER_SOFTWARE
Server administrator:  $SERVER_ADMIN
Server date ($TZ): $DATE_LOCAL
Server port:  $SERVER_PORT
Server protocol:  $SERVER_PROTOCOL
Server gateway interface:  $GATEWAY_INTERFACE
<BR>

3 lines of text with 5 second pauses inbetween:
!EOF!

/usr/bin/date
/usr/bin/sleep 5
/usr/bin/date
/usr/bin/sleep 5
/usr/bin/date
/usr/bin/sleep 5

cat <<!EOF!

Done!
</TT></PRE><BR>

</BODY>
</HTML>
!EOF!

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message