On Wed, Dec 14, 2022 at 10:40:47AM +0100, Claudio Jeker wrote:
> rpki-client IO buffers start with a small header (the size of the full
> message) followed by the payload. io_buf_read() currently does this in
> two steps. Because of this simple messages require two calls through the
> event loop an
rpki-client IO buffers start with a small header (the size of the full
message) followed by the payload. io_buf_read() currently does this in
two steps. Because of this simple messages require two calls through the
event loop and poll(2) for one message.
By retrying the read after parsing the head