X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;ds=sidebyside;f=src%2Fhttp.c;h=ef88f1745a52272ed6be06bdc74bac8aa965ee7b;hb=3711bf09aa1125b5277926c29cc0526df68194ac;hp=2df17064540d17e9806f55b986da36823248237f;hpb=a604a6212609e9b809abd09f91e9f60111f25df7;p=pazpar2-moved-to-github.git diff --git a/src/http.c b/src/http.c index 2df1706..ef88f17 100644 --- a/src/http.c +++ b/src/http.c @@ -926,6 +926,7 @@ static void http_io(IOCHAN i, int event) (long long) iochan_getfd(i), sz); for (hb = hc->iqueue; hb; hb = hb->next) fwrite(hb->buf, 1, hb->len, hc->http_server->record_file); + fflush(hc->http_server->record_file); } #endif if (!(hc->request = http_parse_request(hc, &hc->iqueue, reqlen))) @@ -979,6 +980,8 @@ static void http_io(IOCHAN i, int event) (long long) iochan_getfd(i), sz); fwrite(wb->buf, 1, wb->offset + wb->len, hc->http_server->record_file); + fputc('\n', hc->http_server->record_file); + fflush(hc->http_server->record_file); } #endif hc->oqueue = hc->oqueue->next;