Skip to content

[Bug] Lack of support for Swole asynchronous style #12811

@wisonlau

Description

@wisonlau

Search before asking

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

Apache SkyWalking Component

PHP (apache/skywalking-php)

What happened

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

What you expected to happen

Hope to support asynchronous style

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_POER', 9501),
            'sock_type' => SWOOLE_SOCK_TCP,
            'callbacks' => [
                Event::ON_REQUEST => [Hyperf\HttpServer\Server::class, 'onRequest'],
            ],
        ],
]

Anything else

No response

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

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

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working and you are sure it's a bug!

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions