SSL connect fails

Hi,

We are using libwww-ssl to fetch pages from secure webservers on the
internet, but we find that there are some problems in the way this happens.
Since requests failed in strange ways, we conducted tests to see where the
connection attempts failed. After increasing the logging using in libwww, it
became obvious that it was the SSL connect stage that failed every time.
Further investigation revealed that this problem appears only when the
connect was done using a non-blocking socket.
Searching the mailing-lists, it seemed that we are not the only ones having
problems using OpenSSL/libwwwssl with non-blocking sockets. Did anybody
verify whether or not there is a bug in OpenSSL regarding SSL_connect on a
nonblocking socket?

At this moment, we have patched libwwwssl so that just before the connect
the socket is put into blocking mode and after the connect has succeeded it
is put back in non-blocking mode. Somehow I feel that this is a kludge and
that the real problem is in OpenSSL.

Anybody care to comment?

--
The woods are lovely, dark and deep,
But I have lines to code before I sleep, lines
to code before I sleep.

Received on Tuesday, 23 May 2000 08:31:17 UTC