PluginProbe ʕ •ᴥ•ʔ
Matomo Analytics – Powerful, Privacy-First Insights for WordPress / 5.8.2
Matomo Analytics – Powerful, Privacy-First Insights for WordPress v5.8.2
5.11.1 5.11.0 5.10.2 5.10.1 trunk 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.3.0 1.3.1 1.3.2 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.1.0 4.1.1 4.1.2 4.1.3 4.10.0 4.11.0 4.12.0 4.13.0 4.13.2 4.13.3 4.13.4 4.13.5 4.14.0 4.14.1 4.14.2 4.15.0 4.15.1 4.15.2 4.15.3 4.2.0 4.3.0 4.3.1 4.4.1 4.4.2 4.5.0 4.6.0 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 5.0.8 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.10.0 5.2.0 5.2.1 5.2.2 5.3.0 5.3.1 5.3.2 5.3.3 5.6.0 5.6.1 5.7.0 5.7.1 5.8.0 5.8.1 5.8.2
matomo / app / core / CliMulti.php
matomo / app / core Last commit date
API 3 months ago Access 3 months ago Application 3 months ago Archive 3 months ago ArchiveProcessor 3 months ago Archiver 2 years ago AssetManager 3 months ago Auth 6 months ago Category 6 months ago Changes 3 months ago CliMulti 1 year ago Columns 3 months ago Concurrency 3 months ago Config 3 months ago Container 3 months ago CronArchive 3 months ago DataAccess 3 months ago DataFiles 2 years ago DataTable 3 months ago Db 3 months ago DeviceDetector 1 year ago Email 2 years ago Exception 4 months ago Http 4 months ago Intl 3 months ago Log 2 years ago Mail 1 year ago Measurable 6 months ago Menu 3 months ago Metrics 3 months ago Notification 6 months ago Period 3 months ago Plugin 3 months ago Policy 3 months ago ProfessionalServices 1 year ago Report 1 year ago ReportRenderer 3 months ago Request 3 months ago Scheduler 3 months ago Segment 3 months ago Session 3 months ago Settings 3 months ago Tracker 3 months ago Translation 3 months ago Twig 1 year ago UpdateCheck 3 months ago Updater 4 months ago Updates 3 months ago Validators 1 year ago View 6 months ago ViewDataTable 3 months ago Visualization 1 year ago Widget 3 months ago .htaccess 2 years ago Access.php 3 months ago Archive.php 3 months ago ArchiveProcessor.php 4 months ago AssetManager.php 3 months ago Auth.php 6 months ago AuthResult.php 6 months ago BaseFactory.php 2 years ago Cache.php 2 years ago CacheId.php 4 months ago CliMulti.php 3 months ago Common.php 3 months ago Config.php 3 months ago Console.php 3 months ago Context.php 2 years ago Cookie.php 1 year ago CronArchive.php 3 months ago DI.php 3 months ago DataArray.php 5 months ago DataTable.php 3 months ago Date.php 3 months ago Db.php 3 months ago DbHelper.php 3 months ago Development.php 1 year ago ErrorHandler.php 6 months ago EventDispatcher.php 1 year ago ExceptionHandler.php 4 months ago FileIntegrity.php 3 months ago Filechecks.php 1 year ago Filesystem.php 3 months ago FrontController.php 4 months ago Http.php 4 months ago IP.php 1 year ago Log.php 3 months ago LogDeleter.php 1 year ago Mail.php 1 year ago Metrics.php 3 months ago NoAccessException.php 2 years ago Nonce.php 6 months ago Notification.php 6 months ago NumberFormatter.php 5 months ago Option.php 5 months ago Period.php 3 months ago Piwik.php 3 months ago Plugin.php 3 months ago Process.php 1 year ago Profiler.php 6 months ago ProxyHeaders.php 4 months ago ProxyHttp.php 5 months ago QuickForm2.php 3 months ago RankingQuery.php 5 months ago ReportRenderer.php 3 months ago Request.php 3 months ago Segment.php 3 months ago Sequence.php 6 months ago Session.php 3 months ago SettingsPiwik.php 3 months ago SettingsServer.php 1 year ago Singleton.php 2 years ago Site.php 4 months ago SiteContentDetector.php 3 months ago SupportedBrowser.php 2 years ago TCPDF.php 1 year ago Theme.php 1 year ago Timer.php 2 years ago Tracker.php 3 months ago Twig.php 3 months ago Unzip.php 1 year ago UpdateCheck.php 3 months ago Updater.php 3 months ago UpdaterErrorException.php 2 years ago Updates.php 3 months ago Url.php 3 months ago UrlHelper.php 3 months ago Version.php 3 months ago View.php 3 months ago bootstrap.php 1 year ago dispatch.php 2 years ago testMinimumPhpVersion.php 6 months ago
CliMulti.php
544 lines
1 <?php
2
3 /**
4 * Matomo - free/libre analytics platform
5 *
6 * @link https://matomo.org
7 * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
8 */
9 namespace Piwik;
10
11 use Piwik\Archiver\Request;
12 use Piwik\CliMulti\CliPhp;
13 use Piwik\CliMulti\Output;
14 use Piwik\CliMulti\OutputInterface;
15 use Piwik\CliMulti\Process;
16 use Piwik\CliMulti\ProcessSymfony;
17 use Piwik\CliMulti\StaticOutput;
18 use Piwik\Container\StaticContainer;
19 use Piwik\Log\LoggerInterface;
20 use Piwik\Log\NullLogger;
21 use Piwik\Plugins\CoreConsole\FeatureFlags\CliMultiProcessSymfony;
22 use Piwik\Plugins\FeatureFlags\FeatureFlagManager;
23 use Throwable;
24 /**
25 * Class CliMulti.
26 */
27 class CliMulti
28 {
29 public const BASE_WAIT_TIME = 250000;
30 // 250 * 1000 = 250ms
31 /**
32 * If set to true or false it will overwrite whether async is supported or not.
33 *
34 * @var null|bool
35 */
36 public $supportsAsync = null;
37 /**
38 * If set to true or false it will overwrite whether async using Symfony\Process is supported or not.
39 *
40 * Will only be checked if the default $supportsAsync is true.
41 *
42 * @var null|bool
43 */
44 public $supportsAsyncSymfony = null;
45 /**
46 * @var Process[]|ProcessSymfony[]
47 */
48 private $processes = [];
49 /**
50 * If set it will issue at most concurrentProcessesLimit requests
51 * @var int
52 */
53 private $concurrentProcessesLimit = null;
54 /**
55 * @var OutputInterface[]
56 */
57 private $outputs = [];
58 private $acceptInvalidSSLCertificate = \false;
59 /**
60 * @var bool
61 */
62 private $runAsSuperUser = \false;
63 /**
64 * Only used when doing synchronous curl requests.
65 *
66 * @var string
67 */
68 private $urlToPiwik = null;
69 private $phpCliOptions = '';
70 /**
71 * @var callable
72 */
73 private $onProcessFinish = null;
74 /**
75 * @var Timer[]
76 */
77 protected $timers = [];
78 protected $isTimingRequests = \false;
79 /**
80 * @var LoggerInterface
81 */
82 private $logger;
83 /**
84 * @var int|null
85 */
86 private $signal = null;
87 public function __construct(?LoggerInterface $logger = null)
88 {
89 $this->supportsAsync = $this->supportsAsync();
90 $this->supportsAsyncSymfony = $this->supportsAsyncSymfony();
91 $this->logger = $logger ?: new NullLogger();
92 }
93 public function handleSignal(int $signal) : void
94 {
95 $this->signal = $signal;
96 if (\SIGTERM !== $signal) {
97 return;
98 }
99 foreach ($this->processes as $process) {
100 if ($process instanceof ProcessSymfony) {
101 $this->logger->debug('Aborting command: {command} [method = asyncCliSymfony]', ['command' => $process->getCommandLine()]);
102 $process->stop(0);
103 }
104 }
105 }
106 /**
107 * It will request all given URLs in parallel (async) using the CLI and wait until all requests are finished.
108 * If multi cli is not supported (eg windows) it will initiate an HTTP request instead (not async).
109 *
110 * @param string[] $piwikUrls An array of urls, for instance:
111 *
112 * `array('https://www.example.com/matomo?module=API...')`
113 *
114 * **Make sure query parameter values are properly encoded in the URLs.**
115 *
116 * @return array The response of each URL in the same order as the URLs. The array can contain null values in case
117 * there was a problem with a request, for instance if the process died unexpected.
118 */
119 public function request(array $piwikUrls)
120 {
121 if ($this->isTimingRequests) {
122 foreach ($piwikUrls as $url) {
123 $this->timers[] = new \Piwik\Timer();
124 }
125 }
126 $chunks = [$piwikUrls];
127 if ($this->concurrentProcessesLimit) {
128 $chunks = array_chunk($piwikUrls, $this->concurrentProcessesLimit);
129 }
130 $results = [];
131 foreach ($chunks as $urlsChunk) {
132 if (null !== $this->signal) {
133 $this->logSkippedRequests($urlsChunk);
134 continue;
135 }
136 $results = array_merge($results, $this->requestUrls($urlsChunk));
137 }
138 return $results;
139 }
140 /**
141 * Forwards the given configuration options to the PHP cli command.
142 * @param string $phpCliOptions eg "-d memory_limit=8G -c=path/to/php.ini"
143 */
144 public function setPhpCliConfigurationOptions($phpCliOptions)
145 {
146 $this->phpCliOptions = (string) $phpCliOptions;
147 }
148 /**
149 * Ok, this sounds weird. Why should we care about ssl certificates when we are in CLI mode? It is needed for
150 * our simple fallback mode for Windows where we initiate HTTP requests instead of CLI.
151 * @param $acceptInvalidSSLCertificate
152 */
153 public function setAcceptInvalidSSLCertificate($acceptInvalidSSLCertificate)
154 {
155 $this->acceptInvalidSSLCertificate = $acceptInvalidSSLCertificate;
156 }
157 /**
158 * @param $limit int Maximum count of requests to issue in parallel
159 */
160 public function setConcurrentProcessesLimit($limit)
161 {
162 $this->concurrentProcessesLimit = $limit;
163 }
164 public function runAsSuperUser($runAsSuperUser = \true)
165 {
166 $this->runAsSuperUser = $runAsSuperUser;
167 }
168 private function start($piwikUrls)
169 {
170 $numUrls = count($piwikUrls);
171 foreach ($piwikUrls as $index => $url) {
172 $shouldStart = null;
173 if ($url instanceof Request) {
174 $shouldStart = $url->start();
175 }
176 $cmdId = $this->generateCommandId($url) . $index;
177 if ($shouldStart === Request::ABORT) {
178 // output is needed to ensure same order of url to response
179 $output = new StaticOutput($cmdId);
180 $output->write(serialize(array('aborted' => '1')));
181 $this->outputs[] = $output;
182 } else {
183 $this->executeUrlCommand($cmdId, $url, $numUrls);
184 }
185 }
186 }
187 private function executeUrlCommand($cmdId, $url, $numUrls)
188 {
189 if ($this->supportsAsync) {
190 if ($this->supportsAsyncSymfony) {
191 $output = new StaticOutput($cmdId);
192 $this->executeAsyncCliSymfony($url, $cmdId);
193 } elseif ($numUrls === 1) {
194 $output = new StaticOutput($cmdId);
195 $this->executeSyncCli($url, $output);
196 } else {
197 $output = new Output($cmdId);
198 $this->executeAsyncCli($url, $output, $cmdId);
199 }
200 } else {
201 $output = new StaticOutput($cmdId);
202 $this->executeNotAsyncHttp($url, $output);
203 }
204 $this->outputs[] = $output;
205 }
206 private function buildCommand($hostname, $query, $outputFileIfAsync, $doEscapeArg = \true)
207 {
208 $bin = $this->findPhpBinary();
209 $superuserCommand = $this->runAsSuperUser ? "--superuser" : "";
210 $append = '2>&1';
211 if ($outputFileIfAsync) {
212 $append = sprintf(' > %s 2>&1 &', $outputFileIfAsync);
213 }
214 if ($doEscapeArg) {
215 $hostname = escapeshellarg($hostname);
216 $query = escapeshellarg($query);
217 }
218 return sprintf('%s %s %s/console climulti:request -q --matomo-domain=%s %s %s %s', $bin, $this->phpCliOptions, PIWIK_INCLUDE_PATH, $hostname, $superuserCommand, $query, $append);
219 }
220 private function getResponse()
221 {
222 $response = array();
223 foreach ($this->outputs as $output) {
224 $content = $output->get();
225 // Remove output that can be ignored in climulti . works around some WordPress setups where the hash bang may
226 // be printed
227 $search = '#!/usr/bin/env php';
228 if (!empty($content) && is_string($content) && mb_substr(trim($content), 0, strlen($search)) === $search) {
229 $content = trim(mb_substr(trim($content), strlen($search)));
230 }
231 $response[] = $content;
232 }
233 return $response;
234 }
235 private function hasFinished() : bool
236 {
237 $hasFinished = \true;
238 foreach ($this->processes as $index => $process) {
239 if ($process instanceof ProcessSymfony) {
240 $processFinished = $this->hasFinishedProcessSymfony($process);
241 } else {
242 $processFinished = $this->hasFinishedProcess($process);
243 }
244 if (\true === $processFinished) {
245 // prevent from checking this process over and over again
246 unset($this->processes[$index]);
247 if ($this->isTimingRequests) {
248 $this->timers[$index]->finish();
249 }
250 if ($this->onProcessFinish) {
251 $pid = $process->getPid();
252 $onProcessFinish = $this->onProcessFinish;
253 $onProcessFinish($pid);
254 }
255 }
256 $hasFinished = $hasFinished && $processFinished;
257 }
258 return $hasFinished;
259 }
260 private function hasFinishedProcess(Process $process) : bool
261 {
262 $hasStarted = $process->hasStarted();
263 if (!$hasStarted && 8 <= $process->getSecondsSinceCreation()) {
264 // if process was created more than 8 seconds ago but still not started there must be something wrong.
265 // ==> declare the process as finished
266 $process->finishProcess();
267 return \true;
268 } elseif (!$hasStarted) {
269 return \false;
270 }
271 if ($process->isRunning()) {
272 return \false;
273 }
274 $pid = $process->getPid();
275 foreach ($this->outputs as $output) {
276 if ($output->getOutputId() === $pid && $output->isAbnormal()) {
277 $process->finishProcess();
278 return \true;
279 }
280 }
281 return $process->hasFinished();
282 }
283 private function hasFinishedProcessSymfony(ProcessSymfony $process) : bool
284 {
285 $finished = $process->isStarted() && !$process->isRunning();
286 if ($finished) {
287 foreach ($this->outputs as $output) {
288 if ($output->getOutputId() !== $process->getCommandId()) {
289 continue;
290 }
291 $output->write($process->getOutput());
292 break;
293 }
294 }
295 return $finished;
296 }
297 private function generateCommandId($command)
298 {
299 return substr(\Piwik\Common::hash($command . microtime(\true) . rand(0, 99999)), 0, 100);
300 }
301 /**
302 * What is missing under windows? Detection whether a process is still running in Process::isProcessStillRunning
303 * and how to send a process into background in start()
304 */
305 public function supportsAsync()
306 {
307 $supportsAsync = Process::isSupported() && !\Piwik\Common::isPhpCgiType() && $this->findPhpBinary();
308 /**
309 * Triggered to allow plugins to force the usage of async cli multi execution or to disable it.
310 *
311 * **Example**
312 *
313 * public function supportsAsync(&$supportsAsync)
314 * {
315 * $supportsAsync = false; // do not allow async climulti execution
316 * }
317 *
318 * @param bool &$supportsAsync Whether async is supported or not.
319 */
320 \Piwik\Piwik::postEvent('CliMulti.supportsAsync', array(&$supportsAsync));
321 return $supportsAsync;
322 }
323 /**
324 * Returns whether Symfony\Process instead of the default Piwik\Process for
325 * async cli multi execution.
326 *
327 * Requirements:
328 * - supportsAsync has to be true
329 * - feature flag "CliMultiProcessSymfony" has to be active
330 * - proc_open has to be available
331 *
332 * Several of the regular supportsAsync requirements may be obsolete after
333 * a complete switch has been done.
334 *
335 */
336 public function supportsAsyncSymfony() : bool
337 {
338 // When updating from an older version the required symfony component
339 // may not be available. We have to verify that outside of the
340 // CliMulti\ProcessSymfony wrapper because it extends the component.
341 if (!$this->supportsAsync || Process::isMethodDisabled('proc_open') || !class_exists(\Symfony\Component\Process\Process::class)) {
342 return \false;
343 }
344 // The required DI configuration may not be loaded during the update process.
345 // This can happen for an upgrade from a version that did not yet contain
346 // the feature flag plugin.
347 try {
348 $featureFlagManager = StaticContainer::get(FeatureFlagManager::class);
349 return $featureFlagManager->isFeatureActive(CliMultiProcessSymfony::class);
350 } catch (Throwable $e) {
351 return \false;
352 }
353 }
354 private function findPhpBinary()
355 {
356 $cliPhp = new CliPhp();
357 return $cliPhp->findPhpBinary();
358 }
359 private function cleanup()
360 {
361 foreach ($this->processes as $process) {
362 if ($process instanceof ProcessSymfony) {
363 $process->stop(0);
364 } else {
365 $process->finishProcess();
366 }
367 }
368 foreach ($this->outputs as $output) {
369 $output->destroy();
370 }
371 $this->processes = array();
372 $this->outputs = array();
373 }
374 /**
375 * Remove files older than one week. They should be cleaned up automatically after each request but for whatever
376 * reason there can be always some files left.
377 */
378 public static function cleanupNotRemovedFiles()
379 {
380 $timeOneWeekAgo = strtotime('-1 week');
381 $files = _glob(self::getTmpPath() . '/*');
382 if (empty($files)) {
383 return;
384 }
385 foreach ($files as $file) {
386 if (file_exists($file)) {
387 $timeLastModified = filemtime($file);
388 if ($timeLastModified !== \false && $timeOneWeekAgo > $timeLastModified) {
389 unlink($file);
390 }
391 }
392 }
393 }
394 public static function getTmpPath()
395 {
396 return StaticContainer::get('path.tmp') . '/climulti';
397 }
398 private function executeAsyncCli($url, Output $output, $cmdId)
399 {
400 $this->processes[] = new Process($cmdId);
401 $url = $this->appendTestmodeParamToUrlIfNeeded($url);
402 $query = \Piwik\UrlHelper::getQueryFromUrl($url, ['pid' => $cmdId, 'runid' => \Piwik\Common::getProcessId()]);
403 $hostname = \Piwik\Url::getHost($checkIfTrusted = \false);
404 $command = $this->buildCommand($hostname, $query, $output->getPathToFile());
405 $this->logger->debug('Running command: {command} [method = {method}]', ['command' => $command, 'method' => 'asyncCli']);
406 shell_exec($command);
407 }
408 private function executeAsyncCliSymfony(string $url, string $cmdId) : void
409 {
410 $url = $this->appendTestmodeParamToUrlIfNeeded($url);
411 $query = \Piwik\UrlHelper::getQueryFromUrl($url, array());
412 $hostname = \Piwik\Url::getHost($checkIfTrusted = \false);
413 $command = $this->buildCommand($hostname, $query, '', \true);
414 $this->logger->debug('Running command: {command} [method = {method}]', ['command' => $command, 'method' => 'asyncCliSymfony']);
415 // Prepending "exec" is required to send signals to the process
416 // Not using array notation because $command can contain complex parameters
417 if ('\\' !== \DIRECTORY_SEPARATOR) {
418 $command = 'exec ' . $command;
419 }
420 $process = ProcessSymfony::fromShellCommandline($command);
421 $process->setTimeout(null);
422 $process->start();
423 $process->setCommandId($cmdId);
424 $this->processes[] = $process;
425 }
426 private function executeSyncCli($url, StaticOutput $output)
427 {
428 $url = $this->appendTestmodeParamToUrlIfNeeded($url);
429 $query = \Piwik\UrlHelper::getQueryFromUrl($url, array());
430 $hostname = \Piwik\Url::getHost($checkIfTrusted = \false);
431 $command = $this->buildCommand($hostname, $query, '', \true);
432 $this->logger->debug('Running command: {command} [method = {method}]', ['command' => $command, 'method' => 'syncCli']);
433 $result = shell_exec($command);
434 if ($result) {
435 $result = trim($result);
436 }
437 $output->write($result);
438 }
439 private function executeNotAsyncHttp($url, StaticOutput $output)
440 {
441 $piwikUrl = $this->urlToPiwik ?: \Piwik\SettingsPiwik::getPiwikUrl();
442 if (empty($piwikUrl)) {
443 $piwikUrl = 'http://' . \Piwik\Url::getHost() . '/';
444 }
445 $url = $piwikUrl . $url;
446 if (\Piwik\Config::getInstance()->General['force_ssl'] == 1) {
447 $url = str_replace("http://", "https://", $url);
448 }
449 $requestBody = null;
450 if ($this->runAsSuperUser) {
451 $tokenAuth = self::getSuperUserTokenAuth();
452 if (strpos($url, '?') === \false) {
453 $url .= '?';
454 } else {
455 $url .= '&';
456 }
457 $requestBody = 'token_auth=' . $tokenAuth;
458 }
459 $response = null;
460 try {
461 $this->logger->debug("Execute HTTP API request: " . $url);
462 $response = \Piwik\Http::sendHttpRequestBy('curl', $url, $timeout = 0, $userAgent = null, $destinationPath = null, $file = null, $followDepth = 0, $acceptLanguage = \false, $this->acceptInvalidSSLCertificate, \false, \false, 'POST', null, null, $requestBody, [], $forcePost = \true);
463 $output->write($response);
464 } catch (\Exception $e) {
465 $message = "Got invalid response from API request: {$url}. ";
466 if (empty($response)) {
467 $message .= "The response was empty. This usually means a server error. This solution to this error is generally to increase the value of 'memory_limit' in your php.ini file. Please check your Web server Error Log file for more details.";
468 } else {
469 $message .= "Response was '" . $e->getMessage() . "'";
470 }
471 $output->write($message);
472 $this->logger->debug($message, ['exception' => $e]);
473 }
474 }
475 private function appendTestmodeParamToUrlIfNeeded($url)
476 {
477 $isTestMode = defined('PIWIK_TEST_MODE');
478 if ($isTestMode && \false === strpos($url, '?')) {
479 $url .= "?testmode=1";
480 } elseif ($isTestMode) {
481 $url .= "&testmode=1";
482 }
483 return $url;
484 }
485 /**
486 * @param array $piwikUrls
487 * @return array
488 */
489 private function requestUrls(array $piwikUrls)
490 {
491 $this->start($piwikUrls);
492 $startTime = time();
493 do {
494 $elapsed = time() - $startTime;
495 $timeToWait = $this->getTimeToWaitBeforeNextCheck($elapsed);
496 if (count($this->processes)) {
497 usleep($timeToWait);
498 }
499 } while (!$this->hasFinished());
500 $results = $this->getResponse();
501 $this->cleanup();
502 self::cleanupNotRemovedFiles();
503 return $results;
504 }
505 private function logSkippedRequests(array $urls) : void
506 {
507 foreach ($urls as $url) {
508 $this->logger->debug('Skipped climulti:request after abort signal received: {url}', ['url' => $url]);
509 }
510 }
511 private static function getSuperUserTokenAuth()
512 {
513 return \Piwik\Piwik::requestTemporarySystemAuthToken('CliMultiNonAsyncArchive', 36);
514 }
515 public function setUrlToPiwik($urlToPiwik)
516 {
517 $this->urlToPiwik = $urlToPiwik;
518 }
519 public function onProcessFinish(callable $callback)
520 {
521 $this->onProcessFinish = $callback;
522 }
523 // every minute that passes adds an extra 100ms to the wait time. so 5 minutes results in 500ms extra, 20mins results in 2s extra.
524 private function getTimeToWaitBeforeNextCheck($elapsed)
525 {
526 $minutes = floor($elapsed / 60);
527 return self::BASE_WAIT_TIME + $minutes * 100000;
528 // 100 * 1000 = 100ms
529 }
530 public static function isCliMultiRequest()
531 {
532 return \Piwik\Common::getRequestVar('pid', \false) !== \false;
533 }
534 public function timeRequests()
535 {
536 $this->timers = [];
537 $this->isTimingRequests = \true;
538 }
539 public function getTimers()
540 {
541 return $this->timers;
542 }
543 }
544