Allo session resumption

This commit is contained in:
Adam Ruzicka 2023-04-28 18:57:07 +02:00
parent 4f0c334e12
commit d627619dab
1 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,8 @@ has Str $.certificate-file is required;
has Str $.private-key-file is required;
method run() {
my $connections = IO::Socket::Async::SSL.listen($!listen, $!port, :$.certificate-file, :$.private-key-file);
my $connections = IO::Socket::Async::SSL.listen($!listen, $!port, :$.certificate-file, :$.private-key-file,
:no-session-resumption-on-renegotiation(False));
react {
my $listener = do whenever $connections -> $socket {
start self!handle-connection($socket)