mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine the colorful log for srs. remove the log when client close.
This commit is contained in:
parent
8029b7464a
commit
e5770b10b1
6 changed files with 34 additions and 19 deletions
|
@ -29,3 +29,9 @@ bool srs_is_system_control_error(int error_code)
|
|||
|| error_code == ERROR_CONTROL_REPUBLISH;
|
||||
}
|
||||
|
||||
bool srs_is_client_gracefully_close(int error_code)
|
||||
{
|
||||
return error_code == ERROR_SOCKET_READ
|
||||
|| error_code == ERROR_SOCKET_READ_FULLY
|
||||
|| error_code == ERROR_SOCKET_WRITE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue