<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-04-17 23:34 GMT+02:00 Zbigniew Jędrzejewski-Szmek <span dir="ltr">&lt;<a href="mailto:zbyszek@in.waw.pl" target="_blank">zbyszek@in.waw.pl</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Thu, Apr 17, 2014 at 10:17:28PM +0200, Miloslav Trmač wrote:<br>
&gt; 2014-04-16 19:08 GMT+02:00 Chris Adams &lt;<a href="mailto:linux@cmadams.net">linux@cmadams.net</a>&gt;:<br>
&gt;<br>
&gt; &gt; It would be good if systemd could<br>
&gt; &gt; use or extend an existing logging protocol, rather than invent yet<br>
&gt; &gt; another method.<br>
&gt; &gt;<br>
&gt;<br>
&gt; Yes.  Going by the feature page and from what I can see from<br>
&gt; journal-remote.c, because Transfer-Encoding: chunked does not require<br>
&gt; application-level acknowledgment from the recipient, and there is no other<br>
</div>&gt; mechanism to synchronize state, the proposed use of HTTP will be *losing<br>
&gt; data*!<br>
There&#39;s another mechanism to synchronize state: the server replies with<br>
202 accepted after it has successfully parsed and saved the transmission to<br>
disk. The client can send each journal entry as a single POST upload<br>
(using the same connection, so it&#39;s not terrible inefficient).<br></blockquote></div><br></div><div class="gmail_extra">Sure, single POST per entry, or even per batch, would work (AFAICS equivalently with a 200 OK)—note that the data really needs to be on disk before the acknowledgment is sent.<br>
</div><div class="gmail_extra">    Mirek<br></div></div>