> > Would appreciate any advice on how to procede with debugging this. > As usual my suggestion is to add "-msg -debug" options to get more > information from openssl s_client.
I get a bunch of binary data displayed but it seems to stop on the same line: SSL_connect:SSLv3 read finished A I'm now also running my own client and it doesn't seem to have the problem so I'm starting to suspect (well, rather hope) that this might be an issue with s_client... > On server you may check auto-retry option: > SSL_CTX_set_mode(ctx, SSL_MODE_AUTO_RETRY); > this may help if not correctly support return codes > from SSL read/write functions. I think I'm always handling WANT_* returns. > Remember that data is buffered in SSL layer, so sometimes > when you use select() on filedescriptor you may wait for > client data (that is already in local SSL buffer) and client > will wait for server response - and connection looks hang. I always call SSL_pending() before going into select(), as far as I understand that should be sufficient. Anyways, the server is not hanging in select(), it is definitely inside SSL_read(). ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]