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

SSL closed connection problem

From: Attila Uhljar <attila.uhljar@intervoice-brite.com>
Date: Tue, 03 Apr 2001 16:13:36 -0500
Message-Id: <sac9f669.093@>
To: <www-lib@w3.org>

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 17:16:01 UTC

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