mirror of
https://github.com/ossrs/srs.git
synced 2025-02-12 11:21:52 +00:00
Exporter: Filter normal read and write errors.(#3364)
This commit is contained in:
parent
a27ce1d50f
commit
e93abb67b3
1 changed files with 4 additions and 1 deletions
|
@ -445,7 +445,10 @@ void SrsStatistic::on_disconnect(std::string id, srs_error_t err)
|
|||
stream->nb_clients--;
|
||||
vhost->nb_clients--;
|
||||
|
||||
if (srs_error_code(err) != ERROR_SUCCESS) {
|
||||
// TODO: FIXME: Should filter the err.
|
||||
int err_code = srs_error_code(err);
|
||||
if (err_code != ERROR_SUCCESS && err_code != ERROR_SOCKET_READ && err_code != ERROR_SOCKET_WRITE
|
||||
&& err_code != ERROR_SRT_IO) {
|
||||
nb_errs_++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue