Skip to content

Commit

Permalink
TCP: Init the default conn profile even without any listeners
Browse files Browse the repository at this point in the history
This fixes an issue with outgoing TCP connections being initialized with
buggy parameters (timeout: 0, lifetime: 0, etc.), when there are no TCP
listeners.

(cherry picked from commit 96252b6)
  • Loading branch information
liviuchircu committed Sep 28, 2022
1 parent 93cb725 commit dfcffd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/net_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,8 @@ int tcp_init(void)
break;
}

tcp_init_con_profiles();

if (tcp_disabled)
return 0;

Expand All @@ -1746,8 +1748,6 @@ int tcp_init(void)
}
}

tcp_init_con_profiles();

tcp_workers_max_no = (s_profile && (tcp_workers_no<s_profile->max_procs)) ?
s_profile->max_procs : tcp_workers_no ;

Expand Down

0 comments on commit dfcffd5

Please sign in to comment.