mirror of
https://github.com/lxsang/ant-http
synced 2024-12-26 00:38:21 +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);
|
//LOG("RECALL %d\n", stat);
|
||||||
task->handle = accept_request;
|
task->handle = accept_request;
|
||||||
task->priority = HIGH_PRIORITY;
|
task->priority = HIGH_PRIORITY;
|
||||||
task->type = LIGHT;
|
//task->type = LIGHT;
|
||||||
return task;
|
return task;
|
||||||
default:
|
default:
|
||||||
LOG("Error performing SSL handshake %d %d %lu\n", stat, ret, ERR_get_error());
|
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
|
#endif
|
||||||
// create callback for the server
|
// create callback for the server
|
||||||
task = antd_create_task(accept_request,(void*)request, finish_request );
|
task = antd_create_task(accept_request,(void*)request, finish_request );
|
||||||
task->type = LIGHT;
|
//task->type = LIGHT;
|
||||||
antd_add_task(&scheduler, task);
|
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->handle = handle;
|
||||||
task->callback = callback_of(callback);
|
task->callback = callback_of(callback);
|
||||||
task->priority = NORMAL_PRIORITY;
|
task->priority = NORMAL_PRIORITY;
|
||||||
task->type = HEAVY; //LIGHT;
|
task->type = LIGHT;
|
||||||
return task;
|
return task;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user