1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

fix #142, tcp stat slow bug, use /proc/net/sockstat instead, refer to 'ss -s'. 0.9.183.

This commit is contained in:
winlin 2014-08-02 09:54:21 +08:00
parent d5f03200a7
commit 721acc350a
5 changed files with 60 additions and 57 deletions

View file

@ -595,11 +595,14 @@ public:
int skbps_5m;
// connections
// @see: /proc/net/snmp
// @see: /proc/net/sockstat
int nb_conn_sys;
int nb_conn_sys_et; // established
int nb_conn_sys_tw; // time wait
int nb_conn_sys_ls; // listen
int nb_conn_sys_udp; // udp
// retrieve from srs interface
int nb_conn_srs;
public: