diff src/c/http.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 6365d10cd326
children 17393c5e2b90
line wrap: on
line diff
--- a/src/c/http.c	Mon Mar 28 10:37:49 2011 -0400
+++ b/src/c/http.c	Sat Apr 09 14:36:47 2011 -0400
@@ -63,7 +63,7 @@
 
 static void *worker(void *data) {
   int me = *(int *)data;
-  uw_context ctx = uw_request_new_context(&uw_application, NULL, log_error, log_debug);
+  uw_context ctx = uw_request_new_context(me, &uw_application, NULL, log_error, log_debug);
   size_t buf_size = 2;
   char *buf = malloc(buf_size);
   uw_request_context rc = uw_new_request_context();