-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
feature: support running inside swoole coroutines #30
feature: support running inside swoole coroutines #30
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Looks ok. |
@shellphy Thank you for the PR 👍 |
I added swoole's test case, but there are two problems that can't be tested. One is the exception problem, because swoole's exception handling is a little different from phpunit's, so I don't know how to test it. The other is the test of long raw body. The socket message length seems to be limited in the swoole environment. However, this does not affect the use of most cases. |
@shellphy All CI tests are red 😉 Needs to be green 🟢 |
The change itself does not require documentation. Do you mean an example of usage with Swoole? |
|
The CI environment lacks the swoole extension: Error: Class 'Swoole\Coroutine' not found |
roadrunner itself does not rely on swoole, and this patch I made is only compatible with swoole's coroutine environment in rpc project. I think this is not the core function of this project, and few people use swoole and roadrunner at the same time, so I don't think it is necessary to write a special document |
Certainly. You may create a separate pipeline or job and include Swoole extension in it and run the particular tests (concurrent, if you want) in it. If you decide to leave Swoole, I would appreciate it if you add a simple example of using it with some brief explanation and links on how to install this extension. |
@shellphy we discussed internally, sorry for the confusion, I appreciate what you have done. Since I am not a PHP dev, I thought that Swoole is required to properly test this functionality. Since it is not required, could you please remove this dependency from the suggest block, CI and write a regular PHP tests? |
OK |
@shellphy Thanks! |
Associate a static seq variable with a link handle instead of an RPC static variable