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:
parent
a57f2cf744
commit
08bf149d85
@@ -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,
|
||||
|
Reference in New Issue
Block a user