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
2015-05-24 23:29:17 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4df19ba99a4e4d80cd89b304f9298d343497bec9
4df19ba9
1 parent
8a9dbaef
for #405, improve the http flv to 3k. 2.0.170
隐藏空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
14 行增加
和
3 行删除
README.md
trunk/src/app/srs_app_http_conn.cpp
trunk/src/app/srs_app_http_conn.hpp
trunk/src/core/srs_core.hpp
README.md
查看文件 @
4df19ba
...
...
@@ -718,6 +718,7 @@ The play HTTP FLV benchmark by [SB](https://github.com/simple-rtmp-server/srs-be
| 2014-05-24 | 2.0.167 | 1.0k(1000) | players | 82% | 86MB | - |
| 2014-05-24 | 2.0.168 | 2.3k(2300) | players | 92% | 276MB |
[
code
][
p17
]
|
| 2014-05-24 | 2.0.169 | 3.0k(3000) | players | 94% | 188MB |
[
code
][
p18
]
|
| 2014-05-24 | 2.0.170 | 3.0k(3000) | players | 89% | 96MB |
[
code
][
p19
]
|
### Latency benchmark
...
...
trunk/src/app/srs_app_http_conn.cpp
查看文件 @
4df19ba
...
...
@@ -66,11 +66,14 @@ SrsHttpResponseWriter::SrsHttpResponseWriter(SrsStSocket* io)
content_length
=
-
1
;
written
=
0
;
header_sent
=
false
;
nb_iovss_cache
=
0
;
iovss_cache
=
NULL
;
}
SrsHttpResponseWriter
::~
SrsHttpResponseWriter
()
{
srs_freep
(
hdr
);
srs_freep
(
iovss_cache
);
}
int
SrsHttpResponseWriter
::
final_request
()
...
...
@@ -173,8 +176,12 @@ int SrsHttpResponseWriter::writev(iovec* iov, int iovcnt, ssize_t* pnwrite)
// send in chunked encoding.
int
nb_iovss
=
iovcnt
*
4
;
iovec
*
iovss
=
new
iovec
[
nb_iovss
];
SrsAutoFree
(
iovec
,
iovss
);
iovec
*
iovss
=
iovss_cache
;
if
(
nb_iovss_cache
<
nb_iovss
)
{
srs_freep
(
iovss_cache
);
nb_iovss_cache
=
nb_iovss
;
iovss
=
iovss_cache
=
new
iovec
[
nb_iovss
];
}
char
*
pheader_cache
=
header_cache
;
for
(
int
i
=
0
;
i
<
iovcnt
;
i
++
)
{
...
...
trunk/src/app/srs_app_http_conn.hpp
查看文件 @
4df19ba
...
...
@@ -85,7 +85,10 @@ class SrsHttpResponseWriter : public ISrsHttpResponseWriter
private
:
SrsStSocket
*
skt
;
SrsHttpHeader
*
hdr
;
private
:
char
header_cache
[
SRS_HTTP_HEADER_CACHE_SIZE
];
iovec
*
iovss_cache
;
int
nb_iovss_cache
;
private
:
// reply header has been (logically) written
bool
header_wrote
;
...
...
trunk/src/core/srs_core.hpp
查看文件 @
4df19ba
...
...
@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// current release version
#define VERSION_MAJOR 2
#define VERSION_MINOR 0
#define VERSION_REVISION 1
69
#define VERSION_REVISION 1
70
// server info.
#define RTMP_SIG_SRS_KEY "SRS"
...
...
请
注册
或
登录
后发表评论