-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adapterman When running in - d mode, the program reports an error. #36
Comments
I don't use Laravel. But for me this problem is not from Adapterman or Workerman.
Like you see, exist a lot of not instantiable errors without using Adapterman. Please try first to find a solution for Laravel, and later in Adapterman. I'm busy now, but I'll try to create a page on typical errors in Laravel.
Also a lot of libs are not ready to use in persistent apps, but with Octane more libs are adapting their code to work. Any code will be very careful with singletons, static properties, bad static methods, globals, ... when using persistent applications. |
I am not quite the same as these cases, my program works fine in php-fpm mode, running So my question is what exactly is the difference between workerman in daemon mode and not daemon mode? |
Thank you very much for your reply, I tried to update the version to the latest yesterday, workerman to 4.1.9, Laravel to 9.52.7 and php to 8.1.18, but still the same problem appeared. Since my current old system is performing poorly under Laravel, I'm very interested in using adapterman to get the performance up. I want to solve this problem, but have no idea at all. |
$http_worker->onMessage = static function ($connection, $request) {
$_SERVER['VAR_DUMPER_FORMAT'] = 'server'; // temp solution
$connection->send(run());
}; |
Still not working, still the same error. |
Test environment:
Mac 13.3.1
Workerman version:4.1.5
PHP version:8.1.17
Event-Loop:\Workerman\Events\Select
Adapterman: 0.6.1
Laravel : 9.33.0
The error message is as follows:
The text was updated successfully, but these errors were encountered: