Skip to content

Commit

Permalink
srth: debug connection process
Browse files Browse the repository at this point in the history
  • Loading branch information
funman committed Feb 9, 2024
1 parent bfb6be9 commit 0d8a1e1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/upipe-srt/upipe_srt_handshake.c
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,10 @@ static void upipe_srt_handshake_finalize(struct upipe *upipe)
upipe_srt_handshake->expect_conclusion = false;
upipe_srt_handshake_set_upump_handshake_timeout(upipe, NULL);

if (!upipe_srt_handshake->upump_keepalive_timeout) {
upipe_dbg_va(upipe, "[%s] Remote connected",
upipe_srt_handshake->listener ? "listener" : "caller");
}
upipe_srt_handshake_restart_keepalive_timeout(upipe);

struct uref *flow_def;
Expand Down Expand Up @@ -1325,6 +1329,10 @@ static struct uref *upipe_srt_handshake_handle_hs(struct upipe *upipe, const uin
}
}

upipe_dbg_va(upipe, "[%s] got %s handshake packet",
upipe_srt_handshake->listener ? "listener" : "caller",
conclusion ? "conclusion" : "induction");

struct uref *uref;
if (!upipe_srt_handshake->listener) {
if (conclusion) {
Expand Down

0 comments on commit 0d8a1e1

Please sign in to comment.