comparison src/c/http.c @ 1931:1a04b1edded2

Fix regression in http.c for long-polling connections; add lazy initialization of database connections, to avoid the overhead in handlers that don't use SQL
author Adam Chlipala <adam@chlipala.net>
date Wed, 11 Dec 2013 14:57:54 -0500
parents 5a7ae5acdcea
children 420d129c4174
comparison
equal deleted inserted replaced
1930:5a7ae5acdcea 1931:1a04b1edded2
258 back = buf + kept; 258 back = buf + kept;
259 } else { 259 } else {
260 close(sock); 260 close(sock);
261 sock = 0; 261 sock = 0;
262 } 262 }
263 } else if (rr != KEEP_OPEN) 263 } else if (rr == KEEP_OPEN)
264 sock = 0;
265 else
264 fprintf(stderr, "Illegal uw_request return code: %d\n", rr); 266 fprintf(stderr, "Illegal uw_request return code: %d\n", rr);
265 267
266 break; 268 break;
267 } 269 }
268 } 270 }