New SSL EOF error behavior when remote connection closes
Brought to you by:
kenkeys
I recently upgraded to Ubuntu 22.04 LTS, and now when the remote server disconnects I get some new error messages which didn't appear before:
% Connection to (world) closed: SSL/lib: error:0A000126:SSL routines::unexpected eof while reading
% Connection to (world) closed: SSL/lib: error:0A000197:SSL routines::shutdown while in init
This replaces the previous behavior of it simply giving a single "connection closed" line. This behavior appears to be new to libssl3; previously, Ubuntu 20.4 LTS used openssl27.
This is an extremely minor issue but it possibly indicates a change in the OpenSSL API that might need addressing. From a cursory GitHub search it seems that it's appropriate to call this in the SSL context setup:
SSL_CTX_set_options(ctx, SSL_OP_IGNORE_UNEXPECTED_EOF);
although it's unclear if that will cause other issues with how remote connections close from the server side.