Re: rpki-client: small io optimization

2022-12-14 Thread Theo Buehler
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: small io optimization

2022-12-14 Thread Claudio Jeker
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