2014-04-17 23:34 GMT+02:00 Zbigniew Jędrzejewski-Szmek <zbys...@in.waw.pl>:

> On Thu, Apr 17, 2014 at 10:17:28PM +0200, Miloslav Trmač wrote:
> > 2014-04-16 19:08 GMT+02:00 Chris Adams <li...@cmadams.net>:
> >
> > > It would be good if systemd could
> > > use or extend an existing logging protocol, rather than invent yet
> > > another method.
> > >
> >
> > Yes.  Going by the feature page and from what I can see from
> > journal-remote.c, because Transfer-Encoding: chunked does not require
> > application-level acknowledgment from the recipient, and there is no
> other
> > mechanism to synchronize state, the proposed use of HTTP will be *losing
> > data*!
> There's another mechanism to synchronize state: the server replies with
> 202 accepted after it has successfully parsed and saved the transmission to
> disk. The client can send each journal entry as a single POST upload
> (using the same connection, so it's not terrible inefficient).
>

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.
    Mirek
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Reply via email to