Finnally move away from blocking reads in rpki-client. The code was a
authorclaudio <claudio@openbsd.org>
Sat, 23 Oct 2021 16:06:04 +0000 (16:06 +0000)
committerclaudio <claudio@openbsd.org>
Sat, 23 Oct 2021 16:06:04 +0000 (16:06 +0000)
commit7eb79a4a63c58a6abbcfe3ffb1e4a81b2024d015
tree0a2a92cf205c4000b3e21f5e91bffa2d8f4b5ba5
parent5dfcea78ab7b11789b551a4926e0de60463d0909
Finnally move away from blocking reads in rpki-client. The code was a
mish mash of poll, non-blocking writes and blocking reads. Using the
introduced ibuf size header in io_buf_new()/io_buf_close() the read
side can be changed to pull in a full ibuf and only start the un-marshal
once all data has been read.
OK benno@
12 files changed:
usr.sbin/rpki-client/cert.c
usr.sbin/rpki-client/extern.h
usr.sbin/rpki-client/http.c
usr.sbin/rpki-client/io.c
usr.sbin/rpki-client/ip.c
usr.sbin/rpki-client/main.c
usr.sbin/rpki-client/mft.c
usr.sbin/rpki-client/parser.c
usr.sbin/rpki-client/roa.c
usr.sbin/rpki-client/rrdp.c
usr.sbin/rpki-client/rsync.c
usr.sbin/rpki-client/tal.c