Fixed keep-alive issue

master
Nicolas Favre-Felix 13 years ago
parent e35374c8b0
commit 8136f9270f

@ -83,7 +83,7 @@ http_response_cleanup(struct http_response *r, int fd, int success) {
/* cleanup buffer */
free(r->out);
if(!r->keep_alive && !success) {
if(!r->keep_alive || !success) {
/* Close fd is client doesn't support Keep-Alive. */
close(fd);
}

Loading…
Cancel
Save