src/server/daemon/httplistener.c

changeset 38
d07810b02147
parent 37
360b9aabe17e
child 41
bb7a1f5a8b48
equal deleted inserted replaced
37:360b9aabe17e 38:d07810b02147
135 return fl; 135 return fl;
136 } 136 }
137 // end remove 137 // end remove
138 138
139 HttpListener *listener = malloc(sizeof(HttpListener)); 139 HttpListener *listener = malloc(sizeof(HttpListener));
140 listener->cfg = conf->cfg;
140 listener->name = conf->name; 141 listener->name = conf->name;
141 listener->default_vs.vs_name = conf->vs.ptr; 142 listener->default_vs.vs_name = conf->vs.ptr;
142 if(conf->threadpool.ptr != NULL) { 143 if(conf->threadpool.ptr != NULL) {
143 listener->threadpool = get_threadpool(conf->threadpool); 144 listener->threadpool = get_threadpool(conf->threadpool);
144 } 145 }
277 ls->session_handler->enqueue_connection( 278 ls->session_handler->enqueue_connection(
278 ls->session_handler, 279 ls->session_handler,
279 conn); 280 conn);
280 281
281 /* ready for new connection */ 282 /* ready for new connection */
283
284 // this acceptor is outdated
282 if(acceptor_exit) { 285 if(acceptor_exit) {
283 break; 286 break;
284 } 287 }
285 } 288 }
286 289

mercurial