mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #160, support forward/edge to flussonic, disable debug_srs_upnode to make flussonic happy. 0.9.201.
This commit is contained in:
parent
c24e68dd70
commit
e9e0cd757c
14 changed files with 207 additions and 36 deletions
|
@ -81,8 +81,10 @@ int SrsForwarder::on_publish(SrsRequest* req, std::string forward_server)
|
|||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
// TODO: FIXME: directly use the req object.
|
||||
// forward app
|
||||
app = req->app;
|
||||
vhost = req->vhost;
|
||||
|
||||
stream_name = req->stream;
|
||||
server = forward_server;
|
||||
|
@ -215,7 +217,11 @@ int SrsForwarder::cycle()
|
|||
srs_error("handshake with server failed. ret=%d", ret);
|
||||
return ret;
|
||||
}
|
||||
if ((ret = client->connect_app(app, tc_url)) != ERROR_SUCCESS) {
|
||||
// TODO: FIXME: take debug info for srs, @see SrsEdgeForwarder.connect_server.
|
||||
// @see https://github.com/winlinvip/simple-rtmp-server/issues/160
|
||||
// the debug_srs_upnode is config in vhost and default to true.
|
||||
bool debug_srs_upnode = _srs_config->get_debug_srs_upnode(vhost);
|
||||
if ((ret = client->connect_app(app, tc_url, NULL, debug_srs_upnode)) != ERROR_SUCCESS) {
|
||||
srs_error("connect with server failed, tcUrl=%s. ret=%d", tc_url.c_str(), ret);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue