mirror of
https://github.com/lxsang/ant-http
synced 2024-11-17 17:08:20 +01:00
use heavy task by default
This commit is contained in:
parent
61abd03669
commit
133cb58e90
@ -209,7 +209,7 @@ void *accept_request(void *data)
|
||||
//LOG("RECALL %d\n", stat);
|
||||
task->handle = accept_request;
|
||||
task->priority = HIGH_PRIORITY;
|
||||
task->type = LIGHT;
|
||||
//task->type = LIGHT;
|
||||
return task;
|
||||
default:
|
||||
LOG("Error performing SSL handshake %d %d %lu\n", stat, ret, ERR_get_error());
|
||||
|
2
httpd.c
2
httpd.c
@ -205,7 +205,7 @@ int main(int argc, char* argv[])
|
||||
#endif
|
||||
// create callback for the server
|
||||
task = antd_create_task(accept_request,(void*)request, finish_request );
|
||||
task->type = LIGHT;
|
||||
//task->type = LIGHT;
|
||||
antd_add_task(&scheduler, task);
|
||||
}
|
||||
|
||||
|
@ -224,7 +224,7 @@ antd_task_t* antd_create_task(void* (*handle)(void*), void *data, void* (*callba
|
||||
task->handle = handle;
|
||||
task->callback = callback_of(callback);
|
||||
task->priority = NORMAL_PRIORITY;
|
||||
task->type = HEAVY; //LIGHT;
|
||||
task->type = LIGHT;
|
||||
return task;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user