-
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
Regression with limited error information when migrating from (PHP 8.2.13, OpenSwoole 22.1.0) to (PHP 8.3.0, OpenSwoole 22.1.0) #343
Comments
Hey @doubaokun - I was able to reproduce this using the following, <?php
declare(strict_types=1);
use OpenSwoole\Constant;
use OpenSwoole\Http\Request;
use OpenSwoole\Http\Response;
use OpenSwoole\Http\Server;
use OpenSwoole\Runtime;
use OpenSwoole\Util;
$Server = new Server('host.docker.internal', 62481);
$Server->set([
'reactor_num' => Util::getCPUNum() * 2,
'hook_flags' => Runtime::HOOK_ALL,
'log_level' => Constant::LOG_DEBUG,
'log_file' => '/proc/1/fd/1',
// 'open_cpu_affinity' => true,
'tcp_fastopen' => true,
'open_tcp_keepalive' => true,
'http_compression' => true,
'http_compression_level' => 6,
'open_http2_protocol' => true,
'compression_min_length' => 128,
'backlog' => 100000,
'reload_async' => false,
]);
$Server->on('Request', static function (Request $Request, Response $Response): void {
file_put_contents('FILENAME', 'CONTENTS');
});
$Server->start(); The takeaway is if Hoping this helps! Please let me know if there is anything else I can do to help =) Thank you! |
It seems we can't reproduce the issues you have seen at 2a359d1. Please provide codes and open this thread again. |
hey @doubaokun - it seems like the other key is to have seemingly any Preload script defined. I just use one that does nothing. I have put together and tested this repository which will build and run a container that exhibits this behavior. Thanks so much, and please let me know if I can help further! |
Hey there, should I open a new ticket? |
Hi there, this is also present in 8.3.1 fwiw (and not present in 8.2.14). |
Hi again, is there anything I can do to get a project member to help me with this? I really want to get on the the latest 8.3 (which is 8.3.2 currently) and this behavior exhibits itself across all three 8.3 releases. I really appreciate the project, all the time that goes into it. I'm really looking for help at this point because I don't have the tooling or skillset to move this along any further, but I will do anything and everything I can to help or give back in some way to get this resolved. Please help me. Thank you very much =) |
Present in 8.3.3 and not present in 8.2.16. Help |
I might have some cycles to look into this. Is this still the case? I am unable to reproduce on 8.3.2 with Swoole 22.1.2. Can you send output of php -i ? |
Hey there @bitslip6, any help would be greatly appreciated. It is present so far in every PHP release >= Are you familiar with Docker? I have published a Github repository that demonstrates this behavior, https://github.com/QuantafireIO/343 This way it is easy to observe (just change the version of PHP or Open Swoole in the Dockerfile) and eliminates any doubt about technology versions, etc. The README lists the few steps to build, run, and observe this issue. I have updated the PHP version in the Dockerfile now to the latest at this time, Thank you very much for your interest, time, and efforts =) |
php --ri openswoole
)?uname -a
&php -v
&gcc -v
) ?Hey there, I know the error message isn't very helpful, but I can't figure out how to get any more information.
This is how the
\OpenSwoole\Server
is started,and everything works great with
OpenSwoole
22.1.0 & PHP 8.2.13 (with the same configuration).Can someone help me get more detailed error information?
Thank you!
The text was updated successfully, but these errors were encountered: