tsf icon indicating copy to clipboard operation
tsf copied to clipboard

coroutine and Swoole based php server framework in tencent

Results 27 tsf issues
Sort by recently updated
recently updated
newest added

启动命令 php swoole 应该是 php swoole.php 吧

# php swoole.php testHttpServ start PHP Fatal error: Class Swoole\Network\TcpServer contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Swoole\Server\Driver::run, Swoole\Server\Driver::setProtocol) in /data/tsf/lib/Swoole/Network/TcpServer.php on...

`bin/swoole.php`里面ansi color可以考虑用composer里面的ansi库实现

直接部署的github上的源码 ubuntu 14 [server] ;server type type = http ; port listen[] = 8080 ; index.php path root = '/var/www/examples/src/index.php' ;php path php = '/usr/php/bin/php' [setting] ; worker num worker_num...

看源码的时候,总觉得/Coroutine/Scheduler.php和Coroutine/Task.php有bug, 于是进行了测试,为了测试方便,我把worker_num设置为1; 我在测试的控制器里有两个action。分别为action1和action2 action1为慢速的请求,一般需要2s才能回数据 action2响应比较快,都在几毫秒内完成。 我用两个客户端先后访问action1和action2,action2能返回数据,但是action1则卡着不动,一直没有响应。 原因应该是Coroutine/Task.php里处理异步io的时候,直接return,处理下一个请求;当慢请求有数据返回的时候需要进行回调,但是Coroutine/Scheduler.php里的run方法的task对象已经被销毁了,无法给客户端返回数据。

Fatal error: Class 'YaafUdpServ' not found