mirror of
https://github.com/lxsang/antd-lua-plugin
synced 2024-12-27 09:58:21 +01:00
update
This commit is contained in:
parent
c7ea2af3f1
commit
b83beb5a16
@ -227,8 +227,8 @@ static void *process(void *data)
|
|||||||
case 0:
|
case 0:
|
||||||
// time out
|
// time out
|
||||||
task = antd_create_task(process, (void *)rq, NULL, time(NULL));
|
task = antd_create_task(process, (void *)rq, NULL, time(NULL));
|
||||||
//antd_task_bind_event(task, rq->client->sock, 0, TASK_EVT_ON_WRITABLE | TASK_EVT_ON_READABLE);
|
antd_task_bind_event(task, rq->client->sock, 0, TASK_EVT_ON_WRITABLE | TASK_EVT_ON_READABLE);
|
||||||
//antd_task_bind_event(task, cl->sock, 0, TASK_EVT_ON_WRITABLE | TASK_EVT_ON_READABLE);
|
antd_task_bind_event(task, cl->sock, 0, TASK_EVT_ON_READABLE);
|
||||||
return task;
|
return task;
|
||||||
// we have data
|
// we have data
|
||||||
default:
|
default:
|
||||||
@ -277,7 +277,7 @@ static void *process(void *data)
|
|||||||
}
|
}
|
||||||
task = antd_create_task(process, (void *)rq, NULL, time(NULL));
|
task = antd_create_task(process, (void *)rq, NULL, time(NULL));
|
||||||
antd_task_bind_event(task, rq->client->sock, 0, TASK_EVT_ON_WRITABLE | TASK_EVT_ON_READABLE);
|
antd_task_bind_event(task, rq->client->sock, 0, TASK_EVT_ON_WRITABLE | TASK_EVT_ON_READABLE);
|
||||||
antd_task_bind_event(task, cl->sock, 0, TASK_EVT_ON_WRITABLE | TASK_EVT_ON_READABLE);
|
antd_task_bind_event(task, cl->sock, 0, TASK_EVT_ON_READABLE);
|
||||||
return task;
|
return task;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user