mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
Improved logging of Connection Behaviours.
- Hid lots of DEBUG_BASIC behind #defines in pqissl. - Added PeerID() in many places, so grep for a single peer. - fixed linkMgr output so we can tell a FAILURE vs FAILED ATTEMPT - reduced most logging to a single line. - print out of errno in HumanText for SSL errors. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4814 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3a271abf11
commit
8a86c980fc
5 changed files with 284 additions and 112 deletions
|
@ -121,8 +121,18 @@ std::string socket_errorType(int err)
|
|||
{
|
||||
return std::string("ENOTCONN");
|
||||
}
|
||||
// These ones have been turning up in SSL CONNECTION FAILURES.
|
||||
else if (err == EPIPE)
|
||||
{
|
||||
return std::string("EPIPE");
|
||||
}
|
||||
else if (err == ECONNRESET)
|
||||
{
|
||||
return std::string("ECONNRESET");
|
||||
}
|
||||
//
|
||||
|
||||
return std::string("UNKNOWN ERROR CODE");
|
||||
return std::string("UNKNOWN ERROR CODE - ASK RS-DEVS TO ADD IT!");
|
||||
}
|
||||
|
||||
#include <net/if.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue