update get connections thread to sleep 10ms per 1000 connectios. 0.9.181
正在显示
2 个修改的文件
包含
3 行增加
和
3 行删除
@@ -840,9 +840,9 @@ void srs_update_rtmp_server(int nb_conn, SrsKbps* kbps) | @@ -840,9 +840,9 @@ void srs_update_rtmp_server(int nb_conn, SrsKbps* kbps) | ||
840 | // there are maybe many many connections, | 840 | // there are maybe many many connections, |
841 | // for example, when srs used for monitor other process, | 841 | // for example, when srs used for monitor other process, |
842 | // like nginx, there are maybe many TIME_WAIT conections. | 842 | // like nginx, there are maybe many TIME_WAIT conections. |
843 | - // we sleep 1ms when read 1000 records, so 100ms for 10w connections. | 843 | + // we sleep 10ms when read 1000 records, so 1000ms for 10w connections. |
844 | if ((i % 1000) == 0) { | 844 | if ((i % 1000) == 0) { |
845 | - st_usleep(1000); | 845 | + st_usleep(10 * 1000); |
846 | } | 846 | } |
847 | 847 | ||
848 | if (ret == 1) { | 848 | if (ret == 1) { |
@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | @@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
31 | // current release version | 31 | // current release version |
32 | #define VERSION_MAJOR "0" | 32 | #define VERSION_MAJOR "0" |
33 | #define VERSION_MINOR "9" | 33 | #define VERSION_MINOR "9" |
34 | -#define VERSION_REVISION "180" | 34 | +#define VERSION_REVISION "181" |
35 | #define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION | 35 | #define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION |
36 | // server info. | 36 | // server info. |
37 | #define RTMP_SIG_SRS_KEY "SRS" | 37 | #define RTMP_SIG_SRS_KEY "SRS" |
-
请 注册 或 登录 后发表评论