Skip to content

Commit

Permalink
Do not refire timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
tvorogme committed Sep 9, 2024
1 parent e07f596 commit e430833
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lite-server-daemon/adnl-lite-proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -901,8 +901,16 @@ namespace ton::liteserver {
return;
}
} else {
auto e = result.move_as_error();
LOG(ERROR) << "Got unexpected error for refire: " << e.message();
auto error = result.move_as_error();
for (const auto &substring: {"adnl query timeout"}) {
if (error.to_string().find(substring) != std::string::npos) {
LOG(ERROR) << "Skip refire for ADNL timeout";
promise.set_error(std::move(error));
return;
}
}

LOG(ERROR) << "Got unexpected error for refire: " << error.message();
td::actor::send_closure(actor_id(this), &LiteProxy::check_ext_query, src, dst,
std::move(data), std::move(promise), refire + 1);

Expand Down

0 comments on commit e430833

Please sign in to comment.