winlin

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

... ... @@ -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) {
... ...
... ... @@ -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"
... ...