mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
update get connections thread to sleep 10ms per 1000 connectios. 0.9.181
This commit is contained in:
parent
15d4993cc3
commit
f7fdbe6848
2 changed files with 3 additions and 3 deletions
|
@ -840,9 +840,9 @@ void srs_update_rtmp_server(int nb_conn, SrsKbps* kbps)
|
||||||
// there are maybe many many connections,
|
// there are maybe many many connections,
|
||||||
// for example, when srs used for monitor other process,
|
// for example, when srs used for monitor other process,
|
||||||
// like nginx, there are maybe many TIME_WAIT conections.
|
// like nginx, there are maybe many TIME_WAIT conections.
|
||||||
// we sleep 1ms when read 1000 records, so 100ms for 10w connections.
|
// we sleep 10ms when read 1000 records, so 1000ms for 10w connections.
|
||||||
if ((i % 1000) == 0) {
|
if ((i % 1000) == 0) {
|
||||||
st_usleep(1000);
|
st_usleep(10 * 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret == 1) {
|
if (ret == 1) {
|
||||||
|
|
|
@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
// current release version
|
// current release version
|
||||||
#define VERSION_MAJOR "0"
|
#define VERSION_MAJOR "0"
|
||||||
#define VERSION_MINOR "9"
|
#define VERSION_MINOR "9"
|
||||||
#define VERSION_REVISION "180"
|
#define VERSION_REVISION "181"
|
||||||
#define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION
|
#define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION
|
||||||
// server info.
|
// server info.
|
||||||
#define RTMP_SIG_SRS_KEY "SRS"
|
#define RTMP_SIG_SRS_KEY "SRS"
|
||||||
|
|
Loading…
Reference in a new issue