swow引擎下无法添加UDP协议监听
- 主要言語
- PHP
- スター
- 3
- フォーク
- 3
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
配置信息如下:
```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做相应的调整。希望尽快调整,如果可以的话,我会在后续尝试提交修复。
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Start with Hyperf\Server\SwowServer and trace how the server configuration creates its listener. Read the handling of the sock_type option and compare it with the configured UDP example. Done means a Swow server using Socket::TYPE_UDP starts as a UDP listener and accepts packet callbacks instead of starting as TCP.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- php
- 領域
- networking
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 45/100