comparison src/c/fastcgi.c @ 1446:36f7d1debb37

Each context gets its own non-repeating sequence of source numbers
author Adam Chlipala <adam@chlipala.net>
date Sat, 09 Apr 2011 14:36:47 -0400
parents 740e167cd4eb
children 4d0b80dd4c37
comparison
equal deleted inserted replaced
1445:6e6f1643c4e9 1446:36f7d1debb37
320 } 320 }
321 321
322 static void *worker(void *data) { 322 static void *worker(void *data) {
323 FCGI_Input *in = fastcgi_input(); 323 FCGI_Input *in = fastcgi_input();
324 FCGI_Output *out = fastcgi_output(); 324 FCGI_Output *out = fastcgi_output();
325 uw_context ctx = uw_request_new_context(&uw_application, out, log_error, log_debug); 325 uw_context ctx = uw_request_new_context(*(int *)data, &uw_application, out, log_error, log_debug);
326 uw_request_context rc = uw_new_request_context(); 326 uw_request_context rc = uw_new_request_context();
327 headers hs; 327 headers hs;
328 size_t body_size = 0; 328 size_t body_size = 0;
329 char *body = malloc(0); 329 char *body = malloc(0);
330 size_t path_size = 0; 330 size_t path_size = 0;