Help - Search - Members - Calendar
Full Version: EV1server buffering CGI output?
The Planet Forums > System Administration > General Support Questions
Hellmutt
I can't get this script to work correctly:

----------------------
#! /usr/bin/perl


print "Content-type: text/htmlnn";
print "OK, Here I go. I am going to count from 1 to 5!", "n";
$| = 1;
for ($loop=1; $loop <= 5; $loop++) {
print $loop, "n";
sleep (2);
}
print "All Done!", "n";
exit (0);
-------------------

It should write the first 2 lines and then output the numbers one at a time to the browser. But if you try it:

http://www.battlesim.com/cgi-bin/tools/t.pl
or
http://texas.battlesim.com/cgi-bin/t.pl

It waits until the script is done before displaying.

The servers are running 2 different apache servers and the script works outside of EV1:

http://lestat.processing.net/cgi-bin/t.pl

I have been combing the internet and looking for a configuration option in apache but everything says that after 1.3 buffering has been eliminated.

Am I missing something simple or is there some kind of buffering going on?

Thanks.
Yivit
Very strange... I put it on my ev1 machine and on my home gentoo box and it works both places. It DOES seem like it's buffering or something though, with the delay.
rackAID
This could be the IPS they have in place. I have seen some IPS systems cause issues with nph scripts.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.