comparison src/c/http.c @ 1447:17393c5e2b90

Send newly created sources with messages to clients
author Adam Chlipala <adam@chlipala.net>
date Sat, 09 Apr 2011 20:00:52 -0400
parents 36f7d1debb37
children 4d0b80dd4c37
comparison
equal deleted inserted replaced
1446:36f7d1debb37 1447:17393c5e2b90
196 printf("Serving URI %s....\n", path); 196 printf("Serving URI %s....\n", path);
197 rr = uw_request(rc, ctx, method, path, query_string, body, back - body, 197 rr = uw_request(rc, ctx, method, path, query_string, body, back - body,
198 on_success, on_failure, 198 on_success, on_failure,
199 NULL, log_error, log_debug, 199 NULL, log_error, log_debug,
200 sock, uw_really_send, close); 200 sock, uw_really_send, close);
201 uw_send(ctx, sock); 201 if (rr != KEEP_OPEN) uw_send(ctx, sock);
202 202
203 if (rr == SERVED || rr == FAILED) 203 if (rr == SERVED || rr == FAILED)
204 close(sock); 204 close(sock);
205 else if (rr != KEEP_OPEN) 205 else if (rr != KEEP_OPEN)
206 fprintf(stderr, "Illegal uw_request return code: %d\n", rr); 206 fprintf(stderr, "Illegal uw_request return code: %d\n", rr);