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

For #1638, #307, http api success with message, timeout as such

This commit is contained in:
winlin 2020-03-17 11:40:05 +08:00
parent b5dd502103
commit 6118ca382a
4 changed files with 41 additions and 4 deletions

View file

@ -178,6 +178,13 @@ srs_error_t SrsConnection::cycle()
srs_trace("client finished.");
return err;
}
// It maybe success with message.
if (srs_error_code(err) == ERROR_SUCCESS) {
srs_trace("client finished%s.", srs_error_summary(err).c_str());
srs_freep(err);
return err;
}
// client close peer.
// TODO: FIXME: Only reset the error when client closed it.