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
2016-09-01 16:51:09 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e2865c6ac173aac7eb80d7db8d0b055c7681a4cc
e2865c6a
1 parent
a0890fe0
workaround for #511, the fly stfd in close. 2.0.211
隐藏空白字符变更
内嵌
并排对比
正在显示
5 个修改的文件
包含
12 行增加
和
10 行删除
README.md
trunk/src/app/srs_app_rtmp_conn.cpp
trunk/src/app/srs_app_st.cpp
trunk/src/app/srs_app_st.hpp
trunk/src/core/srs_core.hpp
README.md
查看文件 @
e2865c6
...
...
@@ -340,6 +340,7 @@ Remark:
## History
*
v2.0, 2016-09-01, workaround
[
bug #511
]
the fly stfd in close. 2.0.211
*
v2.0, 2016-08-30, comment the pcr.
*
v2.0, 2016-08-18, fix
[
srs-librtmp#4
](
https://github.com/ossrs/srs-librtmp/issues/4
)
filter frame.
*
v2.0, 2016-08-10, fix socket timeout for librtmp.
...
...
@@ -1231,6 +1232,7 @@ Winlin
[
bug #546
]:
https://github.com/ossrs/srs/issues/546
[
bug #418
]:
https://github.com/ossrs/srs/issues/418
[
bug #509
]:
https://github.com/ossrs/srs/issues/509
[
bug #511
]:
https://github.com/ossrs/srs/issues/511
[
bug #xxxxxxxxxx
]:
https://github.com/ossrs/srs/issues/xxxxxxxxxx
[
exo #828
]:
https://github.com/google/ExoPlayer/pull/828
...
...
trunk/src/app/srs_app_rtmp_conn.cpp
查看文件 @
e2865c6
...
...
@@ -225,8 +225,11 @@ int SrsRtmpConn::on_reload_vhost_removed(string vhost)
// if the vhost connected is removed, disconnect the client.
srs_trace
(
"vhost %s removed/disabled, close client url=%s"
,
vhost
.
c_str
(),
req
->
get_stream_url
().
c_str
());
srs_close_stfd
(
stfd
);
// should never close the fd in another thread,
// one fd should managed by one thread, we should use interrupt instead.
// so we just ignore the vhost enabled event.
//srs_close_stfd(stfd);
return
ret
;
}
...
...
trunk/src/app/srs_app_st.cpp
查看文件 @
e2865c6
...
...
@@ -234,13 +234,9 @@ int srs_st_init()
void
srs_close_stfd
(
st_netfd_t
&
stfd
)
{
if
(
stfd
)
{
int
fd
=
st_netfd_fileno
(
stfd
);
st_netfd_close
(
stfd
);
stfd
=
NULL
;
// st does not close it sometimes,
// close it manually.
close
(
fd
);
// we must ensure the close is ok.
int
err
=
st_netfd_close
(
stfd
);
srs_assert
(
err
!=
-
1
);
}
}
...
...
trunk/src/app/srs_app_st.hpp
查看文件 @
e2865c6
...
...
@@ -75,6 +75,7 @@ public:
extern
int
srs_st_init
();
// close the netfd, and close the underlayer fd.
// @remark when close, user must ensure io completed.
extern
void
srs_close_stfd
(
st_netfd_t
&
stfd
);
#endif
...
...
trunk/src/core/srs_core.hpp
查看文件 @
e2865c6
...
...
@@ -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 21
0
#define VERSION_REVISION 21
1
// generated by configure, only macros.
#include <srs_auto_headers.hpp>
...
...
请
注册
或
登录
后发表评论