bug80024-socket-reduced-inherit.phpt 897 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --TEST--
  2. FPM: bug80024 - Duplication of info about inherited socket after pool removing
  3. --SKIPIF--
  4. <?php include "skipif.inc"; ?>
  5. --FILE--
  6. <?php
  7. require_once "tester.inc";
  8. $cfg['main'] = <<<EOT
  9. [global]
  10. error_log = {{FILE:LOG}}
  11. pid = {{FILE:PID}}
  12. include = {{INCLUDE:CONF}}
  13. EOT;
  14. $cfg['poolTemplate'] = <<<EOT
  15. [pool_%index%]
  16. listen = {{ADDR:UDS[pool_%index%]}}
  17. pm = ondemand
  18. pm.start_servers = 2
  19. pm.min_spare_servers = 1
  20. pm.max_spare_servers = 3
  21. pm.max_children = 5
  22. EOT;
  23. $cfg['count'] = 129;
  24. $tester = new FPM\Tester($cfg);
  25. $tester->start();
  26. $tester->expectLogStartNotices();
  27. $cfg['count'] = 128;
  28. $tester->reload($cfg);
  29. $tester->expectLogReloadingNotices(129);
  30. $tester->reload();
  31. $tester->expectLogReloadingNotices(128);
  32. $tester->terminate();
  33. $tester->expectLogTerminatingNotices();
  34. $tester->close();
  35. ?>
  36. Done
  37. --EXPECT--
  38. Done
  39. --CLEAN--
  40. <?php
  41. require_once "tester.inc";
  42. FPM\Tester::clean();
  43. ?>