]> git.ipfire.org Git - thirdparty/openssl.git/commit
Do read retries in quic hq-interop server
authorNeil Horman <nhorman@openssl.org>
Sun, 15 Dec 2024 20:26:41 +0000 (15:26 -0500)
committerNeil Horman <nhorman@openssl.org>
Sat, 11 Jan 2025 21:02:29 +0000 (16:02 -0500)
commit8feededade87fd90267e3364078c4c2dd25c3909
tree2457422eea768575d23cebb1f8f702eca8d9c846
parent956932298b0c5267a08341eef9b17605855a45e1
Do read retries in quic hq-interop server

Normally the throughput test in the interop harness requests several
hundred very small files, resulting in lots of small stream packets from
the client, which are nominally read in a single read operation (as they
typically fit into a single stream frame), and the server was written to
expect that.  However, its still possible, if a stream frame is packed
to the end of a datagram, that only part of its content is carried,
finished in a subsequent stream packet, which leads to a short read.

Augment the server to properly handle SSL_read transient failures so
that such an occurance is handled properly.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26198)
demos/guide/quic-hq-interop-server.c