1
This commit is contained in:
1 parent
98f886b8a8
commit
46b62e2e77
2 files changed
+27
-3
No files matched your search
@@ -114,7 +114,7 @@ static void etcp_link_send_init(struct ETCP_LINK* link, uint8_t reset) {
|
||||
static void etcp_link_init_timer_cbk(void* arg) {
|
||||
DEBUG_TRACE(DEBUG_CATEGORY_CONNECTION, "");
|
||||
struct ETCP_LINK* link = (struct ETCP_LINK*)arg;
|
||||
if (!link) return;
|
||||
if (!link || !link->etcp || !link->etcp->instance) return;
|
||||
|
||||
if ((link->init_retry_count % 10) == 0 && link->init_timeout < INIT_TIMEOUT_MAX) {
|
||||
link->init_timeout += link->init_timeout/4 +1;
|
||||
@@ -219,7 +219,7 @@ static void keepalive_timer_cb(void* arg) {
|
||||
if (!link || !link->etcp || !link->etcp->instance) {
|
||||
DEBUG_ERROR(DEBUG_CATEGORY_CONNECTION, "KEEPALIVE NULL !!!!!!!!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
link->keepalive_timer = NULL;
|
||||
|
||||
@@ -717,7 +717,7 @@ void start_stats_timer(struct ETCP_LINK* link) {
|
||||
// === Новый callback таймера ===
|
||||
static void link_stats_timer_cb(void* arg) {
|
||||
struct ETCP_LINK* link = (struct ETCP_LINK*)arg;
|
||||
if (!link || !link->etcp) return;
|
||||
if (!link || !link->etcp || !link->etcp->instance) return;
|
||||
|
||||
// 1. Сохраняем снимок текущего окна
|
||||
link->stat_win[link->win_ptr].rtt = link->rtt_avg10;
|
||||
|
||||
Reference in new issue
Block a user