hyperf / hyperf/server

swow引擎下无法添加UDP协议监听

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
3
Forks
3
PR merge metrics
No merged PRs in 30d

Description

配置信息如下:
```php
[
'name' => 'UDP server',
'type' => ServerInterface::SERVER_BASE,
'host' => '0.0.0.0',
'port' => 9501,
'callbacks' => [
Event::ON_PACKET => ['className', 'methodName'],
],
'sock_type' => \Swow\Socket::TYPE_UDP
]
```
但是启动监听依然是TCP,检查发现`Hyperf\Server\SwowServer`并未根据sock_type做相应的调整。希望尽快调整,如果可以的话,我会在后续尝试提交修复。

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.