1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 03:41:55 +00:00

update get connections thread to sleep 10ms per 1000 connectios. 0.9.181

This commit is contained in:
winlin 2014-08-01 22:52:40 +08:00
parent 15d4993cc3
commit f7fdbe6848
2 changed files with 3 additions and 3 deletions

View file

@ -840,9 +840,9 @@ void srs_update_rtmp_server(int nb_conn, SrsKbps* kbps)
// there are maybe many many connections,
// for example, when srs used for monitor other process,
// 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) {
st_usleep(1000);
st_usleep(10 * 1000);
}
if (ret == 1) {

View file

@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// current release version
#define VERSION_MAJOR "0"
#define VERSION_MINOR "9"
#define VERSION_REVISION "180"
#define VERSION_REVISION "181"
#define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION
// server info.
#define RTMP_SIG_SRS_KEY "SRS"