Closed abdulbasit-dev closed 2 weeks ago
Can you try the following configuration for reverb.php
:
'servers' => [
'reverb' => [
'host' => env('REVERB_SERVER_HOST', '0.0.0.0'),
'port' => env('REVERB_SERVER_PORT', 8080),
'hostname' => env('REVERB_HOST'),
'options' => [
'tls' => [],
+. 'timeout' => false,
],
@crynobone still same issue
Using ini_set('max_execution_time', 300);
in your AppServiceProvider would set the max execution time to 300 seconds, so yes, the Reverb server will be stopped after 300 seconds.
Reverb is a long-running process, since it's ran through the CLI it would have a timeout of -1
by default, which allows it to run until stopped. Your PHP ini config probably has a max timeout set, so the script will stop after that time. In order for it to work properly you'd need to set the timeout to -1
, ideally with different config files, one for the web server and one for the CLI scripts.
@RobertBoes thanks 🙏
by moving the ini_set('max_execution_time', 300); to production it solve the problem, and reverb is not stopped
Reverb Version
1.0
Laravel Version
11.9
PHP Version
8.2
Description
While running the reverb in localhost after same minitus i get this error and the reverb connection will be closed. i also increased the execution time in AppServiceProvider
Steps To Reproduce
while running this in the localhost
php artisan reverb:start