mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 23:25:32 -04:00
* Fixed up UDP Port "netReset()" (was stuck on 7812, now follows your tcp port).
* OSX Bug: doesn't like classes in C files. switched to void * pointer. * A little extra debugging in pqissl on disconnects. * switched on bitdht by default in libretroshare.pro git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3334 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
7318fdf9c8
commit
627b0f88a2
5 changed files with 48 additions and 7 deletions
|
@ -1364,6 +1364,26 @@ int pqissl::senddata(void *data, int len)
|
|||
out << std::endl;
|
||||
std::cerr << out.str() ;
|
||||
rslog(RSL_ALERT, pqisslzone, out.str());
|
||||
|
||||
/* extra debugging - based on SSL_get_error() man page */
|
||||
{
|
||||
int errsys = errno;
|
||||
int sslerr = 0;
|
||||
std::ostringstream out2;
|
||||
out2 << "SSL_ERROR_SYSCALL, ret == " << tmppktlen;
|
||||
out2 << " errno: " << errsys << std::endl;
|
||||
|
||||
while(0 != (sslerr = ERR_get_error()))
|
||||
{
|
||||
out2 << "SSLERR:" << sslerr << " : ";
|
||||
|
||||
char sslbuf[256] = {0};
|
||||
out2 << ERR_error_string(sslerr, sslbuf);
|
||||
out2 << std::endl;
|
||||
}
|
||||
rslog(RSL_ALERT, pqisslzone, out2.str());
|
||||
}
|
||||
|
||||
reset();
|
||||
return -1;
|
||||
}
|
||||
|
@ -1488,6 +1508,26 @@ int pqissl::readdata(void *data, int len)
|
|||
out << "Socket Closed Abruptly.... Resetting PQIssl";
|
||||
out << std::endl;
|
||||
rslog(RSL_ALERT, pqisslzone, out.str());
|
||||
|
||||
/* extra debugging - based on SSL_get_error() man page */
|
||||
{
|
||||
int syserr = errno;
|
||||
int sslerr = 0;
|
||||
std::ostringstream out2;
|
||||
out2 << "SSL_ERROR_SYSCALL, ret == " << tmppktlen;
|
||||
out2 << " errno: " << syserr << std::endl;
|
||||
|
||||
while(0 != (sslerr = ERR_get_error()))
|
||||
{
|
||||
out2 << "SSLERR:" << sslerr << " : ";
|
||||
|
||||
char sslbuf[256] = {0};
|
||||
out2 << ERR_error_string(sslerr, sslbuf);
|
||||
out2 << std::endl;
|
||||
}
|
||||
rslog(RSL_ALERT, pqisslzone, out2.str());
|
||||
}
|
||||
|
||||
reset();
|
||||
std::cerr << out.str() << std::endl ;
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue