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-08-01 22:52:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f7fdbe68488dcb659900918bd8b31ae58e67ce7e
f7fdbe68
1 parent
15d4993c
update get connections thread to sleep 10ms per 1000 connectios. 0.9.181
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
3 行增加
和
3 行删除
trunk/src/app/srs_app_utility.cpp
trunk/src/core/srs_core.hpp
trunk/src/app/srs_app_utility.cpp
查看文件 @
f7fdbe6
...
...
@@ -840,9 +840,9 @@ void srs_update_rtmp_server(int nb_conn, SrsKbps* kbps)
// there are maybe many many connections,
// for example, when srs used for monitor other process,
// like nginx, there are maybe many TIME_WAIT conections.
// we sleep 1
ms when read 1000 records, so 1
00ms for 10w connections.
// we sleep 1
0ms when read 1000 records, so 10
00ms for 10w connections.
if
((
i
%
1000
)
==
0
)
{
st_usleep
(
1000
);
st_usleep
(
10
*
10
00
);
}
if
(
ret
==
1
)
{
...
...
trunk/src/core/srs_core.hpp
查看文件 @
f7fdbe6
...
...
@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// current release version
#define VERSION_MAJOR "0"
#define VERSION_MINOR "9"
#define VERSION_REVISION "18
0
"
#define VERSION_REVISION "18
1
"
#define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION
// server info.
#define RTMP_SIG_SRS_KEY "SRS"
...
...
请
注册
或
登录
后发表评论