projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a604a62
)
Flush HTTP recording file
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 19 Oct 2011 09:31:38 +0000
(11:31 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 19 Oct 2011 09:31:38 +0000
(11:31 +0200)
src/http.c
patch
|
blob
|
history
diff --git
a/src/http.c
b/src/http.c
index
2df1706
..
ef88f17
100644
(file)
--- 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);
(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)))
}
#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);
(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;
}
#endif
hc->oqueue = hc->oqueue->next;