Skip to content
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] Lack of support for Swole asynchronous style #12813

Closed
2 of 3 tasks
wisonlau opened this issue Nov 29, 2024 · 1 comment
Closed
2 of 3 tasks

[Feature] Lack of support for Swole asynchronous style #12813

wisonlau opened this issue Nov 29, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists feature New feature

Comments

@wisonlau
Copy link

wisonlau commented Nov 29, 2024

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Description

#12806
This fix only supports coroutine style and lacks asynchronous style. Currently, I am using asynchronous style
Hope to support asynchronous style
https://wiki.swoole.com/zh-cn/#/http_server
image

How to reproduce
hyperf frame catalogue: config/server.php

'mode' => SWOOLE_BASE,
'servers' => [
        [
            'name' => 'http',
            'type' => ServerInterface::SERVER_HTTP,
            'host' => env('HTTP_HOST', '0.0.0.0'),
            'port' => (int) env('HTTP_PORE', 9501),
            'sock_type' => SWOOLE_SOCK_TCP,
            'callbacks' => [
                Event::ON_REQUEST => [Hyperf\HttpServer\Server::class, 'onRequest'],
            ],
        ],
]

@jmjoy have a look

Use case

No response

Related issues

No response

Are you willing to submit a pull request to implement this on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

@wisonlau wisonlau added the feature New feature label Nov 29, 2024
@wu-sheng
Copy link
Member

This is duplicate. Don't keep doing this.

@wu-sheng wu-sheng added the duplicate This issue or pull request already exists label Nov 29, 2024
@apache apache locked and limited conversation to collaborators Nov 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists feature New feature
Projects
None yet
Development

No branches or pull requests

2 participants