HomeFreeBSD

mail/isync: Resolve "unexpected EOF" SSL error

Description

mail/isync: Resolve "unexpected EOF" SSL error

Fixes an issue where some IMAP servers, such as Gmail, do not send a
close notification (SSL_shutdown()) before closing the TCP socket,
leading to "unexpected EOF" errors with OpenSSL 3.0.

Now mbsync gracefully handles this scenario, preventing the following
error:

Socket error: secure read from imap.gmail.com ([IPv6 Address
Redacted]:993): error:0A000126:SSL routines::unexpected eof while
reading

PR: 274604
(cherry picked from commit a4ef2ba2e61e3a4190f04c889ded4f6688163354)

Details

Provenance
fcharlier_ploup.netAuthored on Oct 20 2023, 4:15 PM
ehauptCommitted on Oct 20 2023, 4:22 PM
Parents
R11:83ad9bf61a23: www/rt50: Fix vulnerabilities
Branches
Unknown
Tags
Unknown