mongoose/test/timeout.cgi

12 lines
306 B
Plaintext
Raw Normal View History

2010-11-14 00:47:25 +08:00
#!/usr/bin/env perl
2010-11-15 17:41:17 +08:00
# Make stdout unbuffered
$| = 1;
2010-11-14 00:47:25 +08:00
# This script outputs some content, then sleeps for 5 seconds, then exits.
# Web server should return the content immediately after it is sent,
# not waiting until the script exits.
2010-11-15 17:41:17 +08:00
print "Content-Type: text/html\r\n\r\n";
2010-11-14 00:47:25 +08:00
print "Some data";
2010-11-15 17:41:17 +08:00
sleep 3;