diff -r 450d2d5f4735 -r 360b9aabe17e src/server/daemon/httprequest.h --- a/src/server/daemon/httprequest.h Sat Oct 06 13:00:07 2012 +0200 +++ b/src/server/daemon/httprequest.h Sat Dec 15 16:05:03 2012 +0100 @@ -71,7 +71,13 @@ HTTPRequest *http_request_new(); -int handle_request(HTTPRequest *request); +/* + * starts request processing after reading the request header + * + * request: request object + * pool: current thread pool or NULL + */ +int handle_request(HTTPRequest *request, threadpool_t *pool); @@ -87,6 +93,25 @@ int nsapi_objecttype(NSAPISession *sn, NSAPIRequest *rq); int nsapi_service(NSAPISession *sn, NSAPIRequest *rq); +int nsapi_exec(directive *d, NSAPISession *sn, NSAPIRequest *rq); + +int nsapi_exec_tp( + directive *d, + NSAPISession *sn, + NSAPIRequest *rq, + threadpool_t *pool); + +void nsapi_function_return(Session *sn, Request *rq, int ret); + +void nsapi_change_threadpool( + NSAPISession *sn, + NSAPIRequest *rq, + threadpool_t *thrpool); + +void* thrpool_exec(void *d); + +void* thrpool_change(void *data); + int add_objects( HTTPObjectConfig *objs,