Skip to content

Commit

Permalink
[net/tcp] log the unref BEFORE destroying the conn
Browse files Browse the repository at this point in the history
(cherry picked from commit 3bb0d23)
  • Loading branch information
bogdan-iancu committed Jun 17, 2024
1 parent 53ee9b3 commit 6943499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/net_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1197,8 +1197,8 @@ inline static int handle_tcpconn_ev(struct tcp_connection* tcpconn, int fd_i,
tcpconn->flags|=F_CONN_REMOVED;
tcp_trigger_report(tcpconn, TCP_REPORT_CLOSE,
"Async connect failed");
tcpconn_destroy(tcpconn);
sh_log(tcpconn->hist, TCP_UNREF, "tcpconn connect, (%d)", tcpconn->refcnt);
tcpconn_destroy(tcpconn);
return 0;
}

Expand Down

0 comments on commit 6943499

Please sign in to comment.