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-12-22 16:48:06 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8d378cda2e5d95bcfde87f14f4ba869cd7be5fca
8d378cda
1 parent
c7850570
for #418, when simple handshake, copy s1 to c2.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
5 行增加
和
0 行删除
trunk/src/protocol/srs_rtmp_handshake.cpp
trunk/src/protocol/srs_rtmp_handshake.cpp
查看文件 @
8d378cd
...
...
@@ -1164,6 +1164,11 @@ int SrsSimpleHandshake::handshake_with_server(SrsHandshakeBytes* hs_bytes, ISrsP
if
((
ret
=
hs_bytes
->
create_c2
())
!=
ERROR_SUCCESS
)
{
return
ret
;
}
// for simple handshake, copy s1 to c2.
// @see https://github.com/ossrs/srs/issues/418
memcpy
(
hs_bytes
->
c2
,
hs_bytes
->
s0s1s2
+
1
,
1536
);
if
((
ret
=
io
->
write
(
hs_bytes
->
c2
,
1536
,
&
nsize
))
!=
ERROR_SUCCESS
)
{
srs_warn
(
"simple handshake write c2 failed. ret=%d"
,
ret
);
return
ret
;
...
...
请
注册
或
登录
后发表评论