Tests: added Perl threading tests.
This commit is contained in:
11
test/perl/threads/psgi.pl
Normal file
11
test/perl/threads/psgi.pl
Normal file
@@ -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'}
|
||||
], []];
|
||||
};
|
||||
Reference in New Issue
Block a user