-
```php
function onReceive($serv, $fd, $from_id, $data){
$tasks=['t1','t2','t3'];
$resv=$serv->taskWaitMulti($tasks, 0.5);
var_dump($resv);
}
function onTask($serv, $task_id…
-
Hi guys, sorry but I'm a bit stuck about how create custom processing for my forms, right now I'm trying to incorporate the livedrive api so it can send a form response.
I add the form in the modul…
-
$_server->connections is empty in onTask callback
```
$serv = new swoole_websocket_server("0.0.0.0", 443, SWOOLE_BASE, SWOOLE_SOCK_TCP | SWOOLE_SSL);
$serv->set([
'worker_num' => 2,
'task…
-
系统: Linux version 3.12.21-gentoo-r1 (gcc version 4.7.3 (Gentoo 4.7.3-r1 p1.4, pie-0.5.5) )
php: PHP 5.5.18-pl0-gentoo (cli)
swoole: swoole-src-1.8.7-stable
下面是通过gdb解析core文件打出的日志:
>#0 swoole_se…
-
I try the threading mode with this code:
``` php
class myCounter{
private static $i = 0;
public static function inc(){ return ++self::$i;}
}
$http = new swoole_http_server("0.0.0.0", 9100, SW…
-
swoole_http_server是否支持类似用法,[issue 618](https://github.com/swoole/swoole-src/issues/618)
```php
$http->task( 'taskData',-1, function($serv,$task_id,$data) use (&$response){
$response->status(2…
-
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `novasvrd_task_work'.
Program terminated with signal S…
-
> [display] init ...
> [display] init ok, driver name: x11
>
> X Error of failed request: BadValue (integer parameter out of range for operation)
> Major opcode of failed request: 18 (X_ChangeP…
-
我服务器启了5个task_worker进程,使用taskWaitMulti()方法,客户端每次连接服务器并发创建5个task,这5个task做的事情是用curl远程获取一些数据,超时时间是5秒,客户端第一次请求的时候服务器正确返回了数据,然后客户端关闭连接,看上去没有任何问题。客户端第二次请求时却不返回数据了,服务器没有执行任何onTask事件,然后我用strace命令查看task_worker进…
-
Make number of tasks a first-class citizen for a BatchJobs future, e.g.
``` r
plan(batchjobs, ntasks=5)
```
and then add function for using less, e.g.
``` r
ontasks