mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 02:27:38 -07:00
Stability fix + introduction of connection probation
This commit is contained in:
parent
31ed86740c
commit
357cb92f2e
2 changed files with 23 additions and 36 deletions
|
@ -60,6 +60,7 @@ struct accept_st;
|
|||
#define ZT_LWIP_TCP_TIMER_INTERVAL 5
|
||||
#define STATUS_TMR_INTERVAL 500 // How often we check connection statuses (in ms)
|
||||
#define DEFAULT_BUF_SZ 1024 * 1024 * 2
|
||||
#define DEFAULT_BUF_SOFTMAX DEFAULT_BUF_SZ / 2
|
||||
|
||||
namespace ZeroTier {
|
||||
|
||||
|
@ -71,7 +72,7 @@ class LWIPStack;
|
|||
*/
|
||||
struct TcpConnection
|
||||
{
|
||||
bool listening, closing;
|
||||
bool listening, probation;
|
||||
int pid, txsz, rxsz;
|
||||
PhySocket *rpcSock, *sock;
|
||||
struct tcp_pcb *pcb;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue