File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Expand file tree Collapse file tree 2 files changed +44
-0
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ FPM: set pm.max_spawn_rate
3
+ --SKIPIF--
4
+ <?php
5
+ include "skipif.inc " ;
6
+ ?>
7
+ --FILE--
8
+ <?php
9
+
10
+ require_once "tester.inc " ;
11
+
12
+ $ cfg = <<<EOT
13
+ [global]
14
+ error_log = {{FILE:LOG}}
15
+ log_level = notice
16
+ [unconfined]
17
+ listen = {{ADDR}}
18
+ pm = dynamic
19
+ pm.max_children = 5
20
+ pm.start_servers = 2
21
+ pm.min_spare_servers = 1
22
+ pm.max_spare_servers = 3
23
+ pm.max_spawn_rate = 64
24
+ ping.path = /ping
25
+ ping.response = pong
26
+ EOT ;
27
+
28
+ $ tester = new FPM \Tester ($ cfg );
29
+ $ tester ->start ();
30
+ $ tester ->expectLogStartNotices ();
31
+ $ tester ->ping ();
32
+ $ tester ->terminate ();
33
+ $ tester ->expectLogTerminatingNotices ();
34
+ $ tester ->close ();
35
+
36
+ ?>
37
+ Done
38
+ --EXPECT--
39
+ Done
40
+ --CLEAN--
41
+ <?php
42
+ require_once "tester.inc " ;
43
+ FPM \Tester::clean ();
44
+ ?>
You can’t perform that action at this time.
0 commit comments