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 23:08:52 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d5f03200a7b33766ff2b994e35bd29115a3a1896
d5f03200
1 parent
f7fdbe68
revert tcp stat. need more refine. 0.9.182
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
3 行增加
和
11 行删除
trunk/src/app/srs_app_server.cpp
trunk/src/app/srs_app_utility.cpp
trunk/src/core/srs_core.hpp
trunk/src/app/srs_app_server.cpp
查看文件 @
d5f0320
...
...
@@ -90,7 +90,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// update network devices info interval:
// SRS_SYS_CYCLE_INTERVAL * SRS_SYS_NETWORK_RTMP_SERVER_RESOLUTION_TIMES
#define SRS_SYS_NETWORK_RTMP_SERVER_RESOLUTION_TIMES
12
0
#define SRS_SYS_NETWORK_RTMP_SERVER_RESOLUTION_TIMES
9
0
SrsListener
::
SrsListener
(
SrsServer
*
server
,
SrsListenerType
type
)
{
...
...
trunk/src/app/srs_app_utility.cpp
查看文件 @
d5f0320
...
...
@@ -833,18 +833,10 @@ void srs_update_rtmp_server(int nb_conn, SrsKbps* kbps)
int
nb_conn_sys_other
=
0
;
// @see: http://tester-higkoo.googlecode.com/svn-history/r14/trunk/Tools/iostat/iostat.c
for
(
int
i
=
0
;
fgets
(
buf
,
sizeof
(
buf
),
f
);
i
++
)
{
while
(
fgets
(
buf
,
sizeof
(
buf
),
f
)
)
{
int
st
=
0
;
int
ret
=
sscanf
(
buf
,
"%*s %*s %*s %2x
\n
"
,
&
st
);
// 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 10ms when read 1000 records, so 1000ms for 10w connections.
if
((
i
%
1000
)
==
0
)
{
st_usleep
(
10
*
1000
);
}
if
(
ret
==
1
)
{
if
(
st
==
SYS_TCP_ESTABLISHED
)
{
nb_conn_sys_established
++
;
...
...
trunk/src/core/srs_core.hpp
查看文件 @
d5f0320
...
...
@@ -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
1
"
#define VERSION_REVISION "18
2
"
#define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION
// server info.
#define RTMP_SIG_SRS_KEY "SRS"
...
...
请
注册
或
登录
后发表评论