Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-11-13 17:29:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f11272e3ce6717037cfc68ea86a39e6762e36e36
f11272e3
1 parent
38a68319
add comments for bug #194, #196
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
10 行增加
和
3 行删除
trunk/src/app/srs_app_rtmp_conn.cpp
trunk/src/rtmp/srs_protocol_stack.hpp
trunk/src/app/srs_app_rtmp_conn.cpp
查看文件 @
f11272e
...
...
@@ -513,14 +513,19 @@ int SrsRtmpConn::playing(SrsSource* source)
SrsAutoFree
(
SrsConsumer
,
consumer
);
srs_verbose
(
"consumer created success."
);
rtmp
->
set_recv_timeout
(
SRS_CONSTS_RTMP_PULSE_TIMEOUT_US
);
// initialize other components
SrsPithyPrint
pithy_print
(
SRS_CONSTS_STAGE_PLAY_USER
);
SrsMessageArray
msgs
(
SYS_CONSTS_MAX_PLAY_SEND_MSGS
);
bool
user_specified_duration_to_stop
=
(
req
->
duration
>
0
);
int64_t
starttime
=
-
1
;
// TODO: use isolate thread to recv,
// @see: https://github.com/winlinvip/simple-rtmp-server/issues/196
// the performance bottleneck not in the timeout recv, but
// in the multiple messages send, so it's ok for timeout recv,
// @see https://github.com/winlinvip/simple-rtmp-server/issues/194
rtmp
->
set_recv_timeout
(
SRS_CONSTS_RTMP_PULSE_TIMEOUT_US
);
while
(
true
)
{
// TODO: to use isolate thread to recv, can improve about 5% performance.
// @see: https://github.com/winlinvip/simple-rtmp-server/issues/196
...
...
trunk/src/rtmp/srs_protocol_stack.hpp
查看文件 @
f11272e
...
...
@@ -212,7 +212,9 @@ private:
// peer out
private:
/**
* cache for multiple messages send
* cache for multiple messages send,
* initialize to iovec[SRS_CONSTS_IOVS_MAX] and realloc when consumed,
* it's ok to realloc the iovs cache, for all ptr is ok.
*/
iovec
*
out_iovs
;
int
nb_out_iovs
;
...
...
请
注册
或
登录
后发表评论