twosee

Results 159 comments of twosee

wait, if you have not used the `write` method, all data(included header) will be sent after you call `end`.

On the contrary, when the heartbeat is turned off then the connection would not be broken. And websocket protocol has its own heartbeat, tcp heartbeat is not required.

@ShinJii89 websocket client should send ping frame to the server, you can find some examples about it, swoole websocket server would never close the connection if you did not set...

I just took a look, I think it's hard to do this...

无法复现,我这里试的是好的 而且不需要实现那个接口,Swow默认hook了PHP大部分阻塞函数(如stream_select),所以使用PHP默认的模式就可以,不需要特意去适配。

> 找到了另外一个原因,stream_socket_client() 中加了 STREAM_CLIENT_PERSISTENT 就会出现连不上的情况,去掉长连接就好了。 但是这样的话,有没有什么方式可以实现一个协程化的连接池呢? 能否给个复现的例子?cli模式也不需要STREAM_CLIENT_PERSISTENT

This is a TODO item, and we have a better way to do the same (use socket read instead of waitpid): https://github.com/swow/swow/blob/325ed44f9d426993d655facb1709fe9fded8fe67/lib/swow-util/src/functions.php#L214-L231 Except for supporting PHP internal proc-related things, we...

Some core supports landed at 91c2b26b2ae3e22bb8ce828c0ba5403a560c1669 And pcntl hook support will be introduced soon :)

有相关的支持计划,目前有几条理论可行的路径,正在尝试中