mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-20 12:24:24 -04:00
connection bugfixes.
* Print DHT translations (for debugging) * enable all connection modes. * reduced timeout periods for testing. * kill connectionRequest after UDP Fail. (used to restart it). * fixed up UDP Fail / Connection Close code. git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-netupgrade@4450 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6609cec94d
commit
44b494e1fd
4 changed files with 89 additions and 59 deletions
|
@ -29,12 +29,23 @@
|
|||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
#define FAILED_WAIT_TIME (300) //(1800) // 30 minutes.
|
||||
#define TCP_WAIT_TIME (60) // 1 minutes.
|
||||
#define DIRECT_WAIT_TIME (60) // 1 minutes.
|
||||
#define PROXY_WAIT_TIME (60) // 1 minutes.
|
||||
#define RELAY_WAIT_TIME (60) // 1 minutes.
|
||||
#define REVERSE_WAIT_TIME (300) // 5 minutes.
|
||||
#define TESTING_PERIODS 1
|
||||
|
||||
#ifdef TESTING_PERIODS
|
||||
#define FAILED_WAIT_TIME (1800) // 5 minutes.
|
||||
#define TCP_WAIT_TIME (10) // 1/6 minutes.
|
||||
#define DIRECT_WAIT_TIME (10) // 1/6 minutes.
|
||||
#define PROXY_WAIT_TIME (30) // 1/6 minutes.
|
||||
#define RELAY_WAIT_TIME (30) // 1/6 minutes.
|
||||
#define REVERSE_WAIT_TIME (30) // 1/2 minutes.
|
||||
#else
|
||||
#define FAILED_WAIT_TIME (1800) // 30 minutes.
|
||||
#define TCP_WAIT_TIME (60) // 1 minutes.
|
||||
#define DIRECT_WAIT_TIME (60) // 1 minutes.
|
||||
#define PROXY_WAIT_TIME (60) // 1 minutes.
|
||||
#define RELAY_WAIT_TIME (60) // 1 minutes.
|
||||
#define REVERSE_WAIT_TIME (300) // 5 minutes.
|
||||
#endif
|
||||
|
||||
#define MAX_DIRECT_ATTEMPTS (3)
|
||||
#define MAX_PROXY_ATTEMPTS (3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue