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

For #1657, handle on_message_done

This commit is contained in:
winlin 2020-11-05 18:34:56 +08:00
parent 4b082ea96c
commit c3d290013e
6 changed files with 27 additions and 0 deletions

View file

@ -209,6 +209,11 @@ srs_error_t SrsHttpConn::do_cycle()
if ((err = process_request(&writer, req)) != srs_success) {
break;
}
// After the request is processed.
if ((err = handler_->on_message_done(req, &writer)) != srs_success) {
break;
}
// donot keep alive, disconnect it.
// @see https://github.com/ossrs/srs/issues/399
@ -386,6 +391,11 @@ srs_error_t SrsResponseOnlyHttpConn::on_http_message(ISrsHttpMessage* r, SrsHttp
return err;
}
srs_error_t SrsResponseOnlyHttpConn::on_message_done(ISrsHttpMessage* r, SrsHttpResponseWriter* w)
{
return srs_success;
}
srs_error_t SrsResponseOnlyHttpConn::on_conn_done(srs_error_t r0)
{
// Because we use manager to manage this object,