Neil Horman
66e1e60a61
Preserve fileprefix accross reuse in http3 demo server
...
The fileprefix that we serve content from needs to be preserved accross
h3ssl reuse. Make sure we restore it after zeroing the struct.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26180 )
2025-02-17 11:27:33 -05:00
Jean-Frederic Clere
9fc0d25b09
SSL_free() does check for != NULL (thanks Sashan)
...
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25859 )
2025-02-17 11:27:33 -05:00
Jean-Frederic Clere
b8e462c8e3
Fixes according Sashan review.
...
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25859 )
2025-02-17 11:27:33 -05:00
Jean-Frederic Clere
887f6c06a1
port the 2 improvement suggested by @nhorman to help to run the
...
quic-interop-runner.
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25859 )
2025-02-17 11:27:33 -05:00
Jean-Frederic Clere
53ceb451b6
Arrange the code following the reviews.
...
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25859 )
2025-02-17 11:27:33 -05:00
Jean-Frederic Clere
43ccd96da6
Fix small things from the review.
...
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25859 )
2025-02-17 11:27:33 -05:00
Jean-Frederic Clere
ecf6701907
Add <sys/socket.h> for OpenBSD.
...
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25859 )
2025-02-17 11:27:33 -05:00
Jean-Frederic Clere
fe2a51bfda
typo in comment.
...
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25859 )
2025-02-17 11:27:33 -05:00
Jean-Frederic Clere
1b11d7cf67
Arrange the remove_id() logic to be able to remove multiple stream.
...
create a new h3conn in read_from_ssl_ids() when we have a new
connection.
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25859 )
2025-02-17 11:27:33 -05:00
Jean-Frederic Clere
7492a44391
Arrange macox errors.
...
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25859 )
2025-02-17 11:27:33 -05:00
Jean-Frederic Clere
a50a6efd07
make check style happy.
...
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25859 )
2025-02-17 11:27:33 -05:00
Jean-Frederic Clere
511c37b88c
Arrange the logic:
...
SSL_poll() without SSL_POLL_FLAG_NO_HANDLE_EVENT ticks for each stream
we have in SSL_poll() that prevents the server logic to get all events
Use SSL_poll() with SSL_POLL_FLAG_NO_HANDLE_EVENT and
SSL_handle_events() prevents the problem.
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25859 )
2025-02-17 11:27:33 -05:00
Jean-Frederic Clere
6ba49e30d8
read_from_ssl_ids() before wait_for_activity if something was received
...
before and the first time we are in the loop.
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25859 )
2025-02-17 11:27:33 -05:00
Jean-Frederic Clere
fe3e4bbb4f
Arrange poll logic and get it working with chrome.
...
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25859 )
2025-02-17 11:27:33 -05:00
Jean-Frederic Clere
76d8bf6f58
Allow to send some files to test with browsers.
...
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25859 )
2025-02-17 11:27:33 -05:00
Jean-Frederic Clere
2d080ca544
Use something like wait_for_activity() from demos/quic-server-non-block.c
...
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25859 )
2025-02-17 11:27:33 -05:00
Jean-Frederic Clere
a31dfb0ee6
ossl-nghttp3-demo-server.c: Fix compatibility with various clients
...
Fixes openssl/project#752
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24946 )
2025-02-17 11:27:32 -05:00
Jean-Frederic Clere
73977a0424
Add a demo HTTP3 server using the quic server support and nghttp3
...
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24749 )
2025-02-17 11:27:32 -05:00