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

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 UTC