[Bug 274604] mail/isync: work around "unexpected EOF" error messages at end of SSL connections

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 20 Oct 2023 08:31:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274604

            Bug ID: 274604
           Summary: mail/isync: work around "unexpected EOF" error
                    messages at end of SSL connections
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ehaupt@FreeBSD.org
          Reporter: fcharlier@ploup.net
          Assignee: ehaupt@FreeBSD.org
             Flags: maintainer-feedback?(ehaupt@FreeBSD.org)

Created attachment 245754
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=245754&action=edit
patch

Some imap servers (gmail) apparently doesn't send a close notification
(SSL_shutdown()) before closing the TCP socket.

mbsync exits with the following error with OpenSSL 3.0:

Socket error: secure read from imap.gmail.com ([2a00:1450:400c:c02::6d]:993):
error:0A000126:SSL routines::unexpected eof while reading

Add patch available upstream [1] but yet unreleased.

[1]
https://sourceforge.net/p/isync/isync/ci/b6c36624f04cd388873785c0631df3f2f9ac4bf0/

Tested on FreeBSD 12.4-RELEASE, built with poudriere.
Build log available here (for 15 days)
https://pkg.ploup.net/data/FreeBSD:12:amd64-default/2023-10-20_08h11m00s/logs/isync-1.4.4_1.log

-- 
You are receiving this mail because:
You are the assignee for the bug.