| # Tests for worker_shutdown_timeout directive. |
| ############################################################################### |
| BEGIN { use FindBin; chdir($FindBin::Bin); } |
| ############################################################################### |
| my $t = Test::Nginx->new()->has(qw/http/) |
| ->write_file_expand('nginx.conf', <<'EOF'); |
| worker_shutdown_timeout 10ms; |
| ############################################################################### |
| my $s = http('', start => 1); |
| select undef, undef, undef, 0.2; |
| if (IO::Select->new($s)->can_read(5)) { |
| Test::Nginx::log_core('||', "select: can_read"); |
| is(http_get('/', socket => $s) || '', '', 'worker_shutdown_timeout'); |
| ############################################################################### |