1
0
mirror of https://github.com/lxsang/ant-http synced 2024-07-09 23:49:47 +02:00

use heavy task by default

This commit is contained in:
lxsang 2018-10-14 21:48:51 +02:00
parent 61abd03669
commit 133cb58e90
3 changed files with 3 additions and 3 deletions

View File

@ -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());

View File

@ -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);
} }

View File

@ -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;
} }