Skip to content

Commit 5b4cfad

Browse files
committed
Update README.
1 parent a7ce6b6 commit 5b4cfad

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

i18n/en-us/docusaurus-plugin-content-blog/2024-06-15-SRS-Smart-Pointer.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Each stream on the SRS server has a Source object that manages the stream's life
1717
simple, SRS did not release the Source object; with a large number of streams, such as constantly changing streaming
1818
addresses, this led to continuous memory growth and leaks.
1919

20+
<!--truncate-->
21+
2022
Previously, the workaround was to restart the service late at night. SRS supports [Gracefully Quit](https://github.com/ossrs/srs/issues/1579#issuecomment-587414898),
2123
which restarts the service when there are no connections, but this did not completely solve the problem.
2224

i18n/zh-cn/docusaurus-plugin-content-blog/2024-06-15-SRS-Smart-Pointer.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ custom_edit_url: null
1515
每个流在SRS服务器上有个Source对象,用于管理流的生命周期。为了逻辑和代码简单,SRS一直没有释放Source对象;在流特别多的情况下,
1616
比如不断更换推流的地址,会导致内存不断增长和泄露。
1717

18+
<!--truncate-->
19+
1820
之前绕过这个问题的办法,就是半夜三更重启服务。SRS支持[Gracefully Quit](https://github.com/ossrs/srs/issues/1579#issuecomment-587414898)
1921
会在没有连接时重启服务,但是这个方法并没有彻底解决这个问题。
2022

0 commit comments

Comments
 (0)