commit d4392c92200af2f965112e9ee5fc62fc97668edd
Author: Oswald Buddenhagen <[email protected]>
Date:   Sun Feb 15 12:19:47 2015 +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: [email protected]

 src/socket.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/socket.c b/src/socket.c
index 9452cd0..b7de54b 100644
--- 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 );

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to