From 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 20:24:20 +0200 Subject: Adding upstream version 14.2.21. Signed-off-by: Daniel Baumann --- src/civetweb/test/timeout.cgi | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 src/civetweb/test/timeout.cgi (limited to 'src/civetweb/test/timeout.cgi') diff --git a/src/civetweb/test/timeout.cgi b/src/civetweb/test/timeout.cgi new file mode 100755 index 00000000..32482056 --- /dev/null +++ b/src/civetweb/test/timeout.cgi @@ -0,0 +1,12 @@ +#!/usr/bin/env perl + +# Make stdout unbuffered +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, +# not waiting until the script exits. +print "Content-Type: text/html\r\n\r\n"; +print "Some data"; +sleep 3; -- cgit v1.2.3