Menu

#39 New SSL EOF error behavior when remote connection closes

5.0 beta 8
open
nobody
None
5
2022-08-22
2022-08-22
fluffy
No

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.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB