From a311814714e0b1213137441c6e81204bb4a344c6 Mon Sep 17 00:00:00 2001 From: csoler Date: Fri, 20 Mar 2009 23:43:24 +0000 Subject: [PATCH] suppressed misleading ssl error. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1091 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/pqi/pqissl.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/libretroshare/src/pqi/pqissl.cc b/libretroshare/src/pqi/pqissl.cc index ec64cb1dd..5b10598f4 100644 --- a/libretroshare/src/pqi/pqissl.cc +++ b/libretroshare/src/pqi/pqissl.cc @@ -1420,12 +1420,11 @@ int pqissl::readdata(void *data, int len) if (tmppktlen <= 0) // probably needs a reset. { std::ostringstream out; - out << "pqissl::readdata()"; - out << " No Data Read ... Probably a Bad Connection" << std::endl; + int error = SSL_get_error(ssl_connection, tmppktlen); unsigned long err2 = ERR_get_error(); - printSSLError(ssl_connection, tmppktlen, error, err2, out); + //printSSLError(ssl_connection, tmppktlen, error, err2, out); if ((error == SSL_ERROR_ZERO_RETURN) && (err2 == 0)) { @@ -1482,9 +1481,9 @@ int pqissl::readdata(void *data, int len) } else if (error == SSL_ERROR_WANT_READ) // SSL_WANT_READ is not a crittical error. It's just a sign that { // the internal SSL buffer is not ready to accept more data. So -1 - out << "SSL_read() SSL_ERROR_WANT_READ"; // is returned, and the connexion will be retried as is on next - out << std::endl; // call of readdata(). - rslog(RSL_ALERT, pqisslzone, out.str()); +// out << "SSL_read() SSL_ERROR_WANT_READ"; // is returned, and the connexion will be retried as is on next +// out << std::endl; // call of readdata(). +// rslog(RSL_ALERT, pqisslzone, out.str()); return -1; } else