Skip to content

Forward add question mark to the end and Erroneous C2 #3405

@jb-alvarado

Description

@jb-alvarado

Description

I use the backend API in the forward statement. Everything works fine, but srs adds a ? to the end of the URL. Is that desired?

In my case is a problem, because I forward to a ffmpeg instance, and there I monitor the logging output and cancel processing, when stream URL is not matching.

I get for example this output:

 [rtmp @ 0x559de648ed80] [warning] Unexpected stream my-test-stream?, expecting my-test-stream
 [rtmp @ 0x559de648ed80] Unexpected stream my-test-stream?, expecting my-test-stream

And there is a second issue in combination with ffmpeg, I get there this warnings:

[rtmp @ 0x7f2ed00015c0] Erroneous C2 Message epoch does not match up with C1 epoch
[rtmp @ 0x7f2ed00015c0] Erroneous C2 Message random does not match up
  1. SRS Version: 5.0.139

  2. SRS Config:

listen              1935 1936;
max_connections     200;
daemon              off;
pid                 /usr/local/srs/objs/srs.pid;
srs_log_tank        console; # file;
srs_log_file        /var/log/srs.log;
ff_log_dir          /dev/null;

# can be: verbose, info, trace, warn, error
srs_log_level       error;

vhost __defaultVhost__ {
    enabled             off;
}

vhost srs.example.org {
    enabled             on;

    publish {
        normal_timeout      20000;
    }

    play {
        time_jitter     full;
        mix_correct     on;
    }

    forward {
        enabled on;
        backend http://127.0.0.1:8085/api/v1/forward;
    }
}

Expect

About the Erroneous C2 ... warning, I don't know if they are harmful. About the question mark it would be nice, if there would be no extra characters on the given URL.

Metadata

Metadata

Labels

EnglishNativeThis issue is conveyed exclusively in English.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions