From fc9a012ceb83edc5511dccb55a90ea15ab52f337 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Thu, 5 Nov 2020 16:11:01 +0300 Subject: Tests: added Perl threading tests. --- test/perl/threads/psgi.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/perl/threads/psgi.pl (limited to 'test/perl') diff --git a/test/perl/threads/psgi.pl b/test/perl/threads/psgi.pl new file mode 100644 index 00000000..dce28f7d --- /dev/null +++ b/test/perl/threads/psgi.pl @@ -0,0 +1,11 @@ +my $app = sub { + my ($environ) = @_; + + sleep int($environ->{'HTTP_X_DELAY'}); + + return ['200', [ + 'Content-Length' => 0, + 'Psgi-Multithread' => $environ->{'psgi.multithread'}, + 'X-Thread' => $environ->{'psgi.input'} + ], []]; +}; -- cgit