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

fix #398, set recv timeout for http connection.

This commit is contained in:
winlin 2015-05-22 13:57:04 +08:00
parent 6f8c076b30
commit 46a81372e7
4 changed files with 13 additions and 1 deletions

View file

@ -33,6 +33,7 @@ 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;
|| error_code == ERROR_SOCKET_WRITE
|| error_code == ERROR_SOCKET_TIMEOUT;
}