To add keep-alive support the read handler got changed a lot. Now when
authorclaudio <claudio@openbsd.org>
Mon, 10 May 2021 15:12:33 +0000 (15:12 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 10 May 2021 15:12:33 +0000 (15:12 +0000)
commitcb5cc1c3667820727c6b11bdc057097c582f95f0
tree2eb0fe8ba87a775bb9e25d3c09873e65903ec7e1
parent9ffd849e0fb0c69b0db85af20539c19f0baca360
To add keep-alive support the read handler got changed a lot. Now when
tls_read hits the EOF (s == 0) case it is always a cause to close the
connection. All possible data was already consumed and if something is
still in the buffer then it remained in there for a reason.
Issue noticed and OK deraadt@
usr.sbin/rpki-client/http.c