]> git.ipfire.org Git - pakfire.git/commit
jobs: Go back to the event-driven model to send logs
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 7 Feb 2025 17:56:43 +0000 (17:56 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 7 Feb 2025 18:01:20 +0000 (18:01 +0000)
commitf6ae13633e6e3dac7f9a9c1df6e0a40d76814f31
tree1e70d98e1e6d5c71873f64dacb68c3e2c26624dc
parent780a7b3d2dcea02797212c687f81bfc21bff0538
jobs: Go back to the event-driven model to send logs

When the builder is not located in the same data center it can happen
that the send buffer fills up which results in a broken TCP connection
if we continue to send any data.

We will now first of all buffer any messages that have only been
partially sent and listen for when the socket is ready to receive the
rest. If so, we will flush our buffer.

Afterwards we will call the send callback which will go and look for any
more data to send.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/daemon.c
src/pakfire/daemon.h
src/pakfire/job.c
src/pakfire/job.h
src/pakfire/xfer.c
src/pakfire/xfer.h