1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Fix #1520, #1223, bug for origin cluster 3+ servers. 3.0.74

This commit is contained in:
winlin 2019-12-19 14:04:26 +08:00
parent 0200baa179
commit acfeb8a66f
6 changed files with 31 additions and 3 deletions

View file

@ -613,6 +613,11 @@ srs_error_t SrsRtmpConn::playing(SrsSource* source)
+ "vhost=" + req->vhost + "&ip=" + req->host + "&app=" + req->app + "&stream=" + req->stream
+ "&coworker=" + coworkers.at(i);
if ((err = SrsHttpHooks::discover_co_workers(url, host, port)) != srs_success) {
// If failed to discovery stream in this coworker, we should request the next one util the last.
// @see https://github.com/ossrs/srs/issues/1223
if (i < (int)coworkers.size() - 1) {
continue;
}
return srs_error_wrap(err, "discover coworkers, url=%s", url.c_str());
}
srs_trace("rtmp: redirect in cluster, from=%s:%d, target=%s:%d, url=%s",