W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2001

Re: SSL does not work after there has been a timeout

From: <andrew.d.falk@accenture.com>
Date: Thu, 31 May 2001 10:07:10 -0400 (EDT)
To: www-lib@w3.org
Message-ID: <OF9933181E.763C903F-ON86256A5D.004BADC6@accenture.com>
I ended up editing the HTSSLReader_close() function in order to make it
work.  I made it act like HTSSLWriter_close() in that it calls HTSSL_free()
if htssl doesn't equal NULL.  It seems to work like a charm.  Could someone
please tell me if they see a potential problem with this code?  Thanks
much.

Andrew

This is how I changed it:

PRIVATE int HTSSLReader_close (HTInputStream * me)
{
    int status = HT_OK;
    HTNet * net = HTHost_getReadNet(me->host);
    if (net && net->readStream) {
        if ((status = (*net->readStream->isa->_free)(net->readStream))
==HT_WOULD_BLOCK)
            return HT_WOULD_BLOCK;
        net->readStream = NULL;
    }
    HTTRACE(STREAM_TRACE, "HTSSLReader. FREEING....\n");

    /*code added*/
    if (me->htssl) {
        HTSSL_free(me->htssl);
        me->htssl = NULL;
    }
    /*end of added coded*/

    HT_FREE(me);
    return status;
}
Received on Friday, 1 June 2001 13:40:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:39 GMT