1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Retry dht query in adnl-peer if peer does not respond for too long

This commit is contained in:
SpyCheese 2025-01-13 17:41:10 +03:00
parent 4ddb14c136
commit cae9ccfacf
2 changed files with 15 additions and 0 deletions

View file

@ -266,6 +266,7 @@ class AdnlPeerPairImpl : public AdnlPeerPair {
td::Timestamp last_received_packet_ = td::Timestamp::never();
td::Timestamp try_reinit_at_ = td::Timestamp::never();
td::Timestamp drop_addr_list_at_ = td::Timestamp::never();
bool has_reverse_addr_ = false;
td::Timestamp request_reverse_ping_after_ = td::Timestamp::now();