Hi, I have found out, that Pool\Flexible with TTL closes processes under the count of Options:MIN_SIZE.
Example:
$options = [
Options::MIN_SIZE => 1,
Options::MAX_SIZE => 5,
Options::TTL => 10, // seconds
];
Flexible::create(new Process('exec php ...'), $loop, $options);
Pool starts with 1 worker, but after 10 seconds (Options::TTL) of inactivity, worker is closed and there is 0 workers at that time. Problem can be in function ttl, but I do not understand the logic of this function to make PR.
Hi, I have found out, that
Pool\FlexiblewithTTLcloses processes under the count ofOptions:MIN_SIZE.Example:
Pool starts with 1 worker, but after 10 seconds (
Options::TTL) of inactivity, worker is closed and there is 0 workers at that time. Problem can be in functionttl, but I do not understand the logic of this function to make PR.