I recently switched from nsopenssl 1.1c to 2.1a.  Now, I seem to be
occasionally getting errors like this in my log:

[24/Sep/2003:11:08:46][10603.10251][-conn7-] Error: nsopenssl: nsdserver: connection 
closed by peer

AFAIK, the browser nevers sees that error, it appears only in the log.
But, why is it being written to the log at all?  It is coming from the
code below.  Looks to me like this should be a Notice or perhaps
Warning at most, and maybe it shouldn't even bother to be written to
the log at all.

Am I missing something here?  Is there some reason I might ever want
to have this message in my server log at all?


 * NsOpenSSLRecv --
 *      Read data from an SSL connection
 * Results:
 *      The number of bytes read or a negative number in case of
 *      an error.
int NsOpenSSLRecv(Ns_OpenSSLConn *ccPtr, void *buffer, int toread)
{
    int rc;
    do {
        rc = BIO_read(ccPtr->io, buffer, toread);
        /* Check to see if connection has closed */
        if (rc <= 0 && !BIO_should_retry(ccPtr->io)) {
            Ns_Log(Error, "%s: %s: connection closed by peer",
                    ccPtr->module, ccPtr->type);
            return NS_ERROR;
        }
    } while (rc < 0);
    return rc;
}

--
Andrew Piskorski <[EMAIL PROTECTED]>
http://www.piskorski.com


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.

Reply via email to