1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-08-09 03:22:45 +03:00

timeout.cgi test sometimes failed.

Using STDOUT->autoflush(1) seems to work better than $|=1 - I don't know
why.

Also made the timeout.cgi test a bit more verbose.
This commit is contained in:
Arnout Vandecappelle (Essensium/Mind)
2010-12-07 12:38:11 +01:00
parent a57f2cf744
commit 08bf149d85
2 changed files with 7 additions and 3 deletions

View File

@@ -1,7 +1,8 @@
#!/usr/bin/env perl
# Make stdout unbuffered
$| = 1;
use FileHandle;
STDOUT->autoflush(1);
# This script outputs some content, then sleeps for 5 seconds, then exits.
# Web server should return the content immediately after it is sent,