mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-24 22:30:42 -04:00
Limit the concurrent connection attempts in Windows XP. Its's only a hack.
Problem: RetroShare connects to all ssl's at once. In Windows XP there is a build-in connection limit of concurrent incomplete connections. Quote: "The TCP/IP stack in Windows XP with Service Pack 2 (SP2) installed limits the number of concurrent, incomplete outbound TCP connection attempts. When the limit is reached, subsequent connection attempts are put in a queue and resolved at a fixed rate so that there are only a limited number of connections in the incomplete state." This results in a high usage of the nonepaged pool and when it runs over the limit it results in the following error in the system log: German: "TCP/IP hat das Sicherheitslimit erreicht, das für die Anzahl gleichzeitiger TCP-Verbindungsversuche festgelegt wurde." English: "TCP/IP has reached the security limit imposed on the number of concurrent (incomplete) TCP connect attempts." After a longer runtime of RetroShare and a very high usage of the nonepaged pool all connections of all running programs are lost and no new connections can be made. At the end it can cause a blue screen. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3631 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c134b5f605
commit
f4bbd3e933
6 changed files with 188 additions and 4 deletions
|
@ -112,6 +112,14 @@ virtual ~pqiMonitor() { return; }
|
|||
*@param plist contains list of states and actions of the client's peers
|
||||
*/
|
||||
virtual void statusChange(const std::list<pqipeer> &plist) = 0;
|
||||
|
||||
#ifdef WINDOWS_SYS
|
||||
///////////////////////////////////////////////////////////
|
||||
// hack for too many connections
|
||||
virtual void statusChanged() {};
|
||||
///////////////////////////////////////////////////////////
|
||||
#endif
|
||||
|
||||
//virtual void ownStatusChange(pqipeer &) { return; } // SIGNAL reset or similar.
|
||||
//virtual void peerStatus(std::string id, uint32_t mode) = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue