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

RE: SSL closed connection problem

From: Jens Meggers <jens.meggers@firepad.com>
Date: Tue, 3 Apr 2001 18:43:59 -0700
Message-ID: <DDF913B74F07D411B22500B0D0206D9F4EEF89@FIREPLUG>
To: "'Attila Uhljar'" <attila.uhljar@intervoice-brite.com>, "'www-lib@w3.org'" <www-lib@w3.org>
Cc: "'srdjan@scot.canada.sun.com'" <srdjan@scot.canada.sun.com>

I do not understand the whole code, but while patching my code base, I found
the static variable "reusingChannel". It seems to me that the vaiable passes
a flag to HTHost_newWParse() used in HTHost_connect().
This might be kinda unsafe as another host may have changed the state in
between HTHost _new() and HTHost_connect().

What do you think?


-----Original Message-----
From: Attila Uhljar [mailto:attila.uhljar@intervoice-brite.com]
Sent: Dienstag, 3. April 2001 14:14
To: www-lib@w3.org
Subject: SSL closed connection problem


I'm having problems w/ SSL HTTP transactions (GETs) against a secure
site (Netscape server). After a while (say a couple of hours of load
test), the transactions begin to fail more and more frequently,
apparently because the server closes the connection prematurely. I get
no data (chunk->data is NULL), but there's no error code coming from
libwww/libssl either.
When monitoring the TCP connection I saw that there is always a FIN
flag coming from the server before the transaction gets completed
(sometimes after some data is received, sometimes right after I send the
request; I know because I'm retrieving the same data), and that triggers
the following section in HTSSLReader.c (status is almost always

 switch (status) {
    case SSL_ERROR_SSL:
	HTTRACE(PROT_TRACE, "HTSSLReader. FIN received on socket %d\n" _
                HTHost_unregister(host, net, HTEvent_READ);
                HTHost_register(host, net, HTEvent_CLOSE);

                me->htssl = NULL;

                return HT_CLOSED;

Unfortunately I cannot tell whether this behaviour is a result of an
error at the server's side, error in OpenSSL or in LibSSL. 
I'm using libwww5.3.2 (patched), libssl 1.0.1 and openssl 0.9.6 on
WinNT 4.0, non-blocking sockets.

Any help or idea is welcome!
Received on Tuesday, 3 April 2001 21:54:41 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:54 UTC