Skip to content

Commit

Permalink
core: tcp - debug message on no connect
Browse files Browse the repository at this point in the history
(cherry picked from commit 5fee7d8)
  • Loading branch information
miconda committed Jan 6, 2023
1 parent 7e12f4f commit 0ba0203
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/tcp_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2043,8 +2043,10 @@ int tcp_send(struct dest_info* dst, union sockaddr_union* from,
}
/* check if connect() is disabled */
if (unlikely((dst->send_flags.f & SND_F_FORCE_CON_REUSE) ||
cfg_get(tcp, tcp_cfg, no_connect)))
cfg_get(tcp, tcp_cfg, no_connect))) {
LM_DBG("no connect set and no active connection\n");
return -1;
}
LM_DBG("no open tcp connection found, opening new one\n");
/* create tcp connection */
if (likely(from==0)){
Expand Down

0 comments on commit 0ba0203

Please sign in to comment.