|
|
|
@ -95,6 +95,7 @@ SrsRtmpConn::SrsRtmpConn(SrsServer* svr, st_netfd_t c)
|
|
|
|
|
realtime = SRS_PERF_MIN_LATENCY_ENABLED;
|
|
|
|
|
send_min_interval = 0;
|
|
|
|
|
tcp_nodelay = false;
|
|
|
|
|
client_type = SrsRtmpConnUnknown;
|
|
|
|
|
|
|
|
|
|
_srs_config->subscribe(this);
|
|
|
|
|
}
|
|
|
|
@ -506,6 +507,7 @@ int SrsRtmpConn::stream_service_cycle()
|
|
|
|
|
source->source_id(), source->source_id());
|
|
|
|
|
source->set_cache(enabled_cache);
|
|
|
|
|
|
|
|
|
|
client_type = type;
|
|
|
|
|
switch (type) {
|
|
|
|
|
case SrsRtmpConnPlay: {
|
|
|
|
|
srs_verbose("start to play stream %s.", req->stream.c_str());
|
|
|
|
@ -828,7 +830,9 @@ int SrsRtmpConn::publishing(SrsSource* source)
|
|
|
|
|
// use isolate thread to recv,
|
|
|
|
|
// @see: https://github.com/ossrs/srs/issues/237
|
|
|
|
|
SrsPublishRecvThread trd(rtmp, req,
|
|
|
|
|
st_netfd_fileno(stfd), 0, this, source, true, vhost_is_edge);
|
|
|
|
|
st_netfd_fileno(stfd), 0, this, source,
|
|
|
|
|
client_type == SrsRtmpConnFMLEPublish,
|
|
|
|
|
vhost_is_edge);
|
|
|
|
|
|
|
|
|
|
srs_info("start to publish stream %s success", req->stream.c_str());
|
|
|
|
|
ret = do_publishing(source, &trd);
|
|
|
|
|