mporsch / sockpuppet

C++ socket and address library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TLS shutdown assertion hit

mporsch opened this issue · comments

Sporadic assertion hits in shutdown procedure (see test failure in Ubuntu with OpenSSL 3.0.2).

14/14 Test #14: sockpuppet_tls_async_performance_test ...Subprocess aborted***Exception:   1.68 sec
generating random reference data
server listening at [::1]:8554
client [::1]:38418 connecting to server
client [::1]:38418 connected to server
sending reference data from [::1]:38418 to [::1]:8554
client [::1]:38430 connected to server
client [::1]:38430 connecting to server
Errors while running CTest
sending reference data from client [::1]:38446 connected to server
client [::1]:38446 connecting to server
[::1]:38430 to [::1]:8554
sending reference data from [::1]:38446 to [::1]:8554
client [::1]:38418 closed connection to server
client [::1]:8554 closing connection to server
sockpuppet_tls_async_performance_test: /home/runner/work/sockpuppet/sockpuppet/src/socket_tls_impl.cpp:329: void sockpuppet::SocketTlsImpl::Shutdown(): Assertion `i < handshakeStepsMax' failed.

Maybe just give the peer more time to process its pending receipts?

Assertion removed and buffer size increased in #6