This commit is contained in:
Evgeny committed 2026-04-22 20:35:05 +03:00
1 parent f44fbb0eb0
commit 29b295298f
1 file changed
+3
+3
View File
@@ -171,6 +171,7 @@ int route_ping_send_req_addr(struct ROUTE_BGP* bgp, struct ETCP_CONN* to_conn,
static void route_ping_series_finish(struct route_ping_series_ctx* ctx) {
if (!ctx || !ctx->reply_conn) {
u_free(ctx);
DEBUG_ERROR(DEBUG_CATEGORY_BGP, "zero args");
return;
}
@@ -226,6 +227,8 @@ static void route_ping_single_cb(int success,
ctx->sum_rtt += rtt;
}
DEBUG_INFO(DEBUG_CATEGORY_BGP, "ping response id=%zu", request_id);
/* Если ещё не все пакеты отправлены — сразу шлём следующий */
if (ctx->count_sent < ctx->count_total) {
int ret = etcp_send_ping_to_socket(