isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit d4392c92200af2f965112e9ee5fc62fc97668edd
parent 9e15ab4a5a2938318816f3972708176462cb9d5f
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Sun, 15 Feb 2015 12:19:47 +0100

handle clean SSL connection shutdowns

some servers actually bother to close down the SSL connection before
closing the socket.

this fixes the spurious "unhandled SSL error 6" messages.

REFMAIL: 20150120114805.GA17586@leeloo.kyriasis.com

Diffstat:
Msrc/socket.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/socket.c b/src/socket.c @@ -76,6 +76,7 @@ ssl_return( const char *func, conn_t *conn, int ret ) case SSL_ERROR_SSL: if (!(err = ERR_get_error())) { if (ret == 0) { + case SSL_ERROR_ZERO_RETURN: /* Callers take the short path out, so signal higher layers from here. */ conn->state = SCK_EOF; conn->read_callback( conn->callback_aux );