hyperf / hyperf/server

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

Abierto
#4 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
PHP
Estrellas
3
Forks
3
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

配置信息如下:
```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做相应的调整。希望尽快调整,如果可以的话,我会在后续尝试提交修复。

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
php
Área
networking
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bien especificado
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.