diff options
Diffstat (limited to 'src/net.h')
| -rw-r--r-- | src/net.h | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -43,6 +43,14 @@ static const unsigned int MAX_PEX_DESCRIPTOR_BYTES = 1024; | |||
| 43 | // connection is the intended traffic; anything faster is someone else's idea. | 43 | // connection is the intended traffic; anything faster is someone else's idea. |
| 44 | static const int64 PEX_MIN_INTERVAL = 60; | 44 | static const int64 PEX_MIN_INTERVAL = 60; |
| 45 | 45 | ||
| 46 | // How long to sit registered at a rendezvous relay before giving up on this | ||
| 47 | // attempt and registering again. Bounded because a registration socket that | ||
| 48 | // goes quiet is indistinguishable, from inside recv(), from one whose path has | ||
| 49 | // died -- and the second kind never wakes up. Five minutes is short enough | ||
| 50 | // that a node is unreachable only briefly and long enough that the reconnect | ||
| 51 | // traffic is nothing: one per relay per five minutes. | ||
| 52 | static const int BTF_RENDEZVOUS_WAIT_SECS = 300; | ||
| 53 | |||
| 46 | // Descriptors to hand a peer: ours first, then peers that answered us. | 54 | // Descriptors to hand a peer: ours first, then peers that answered us. |
| 47 | void BtfPexCollect(std::vector<std::string>& vDescOut); | 55 | void BtfPexCollect(std::vector<std::string>& vDescOut); |
| 48 | // Verify descriptors a peer sent and remember the good ones. Returns how many. | 56 | // Verify descriptors a peer sent and remember the good ones. Returns how many. |