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

fix #399, disconnect when not keep alive.

This commit is contained in:
winlin 2015-05-22 16:27:48 +08:00
parent 46a81372e7
commit c17a1198cb
4 changed files with 30 additions and 0 deletions

View file

@ -555,6 +555,12 @@ int SrsHttpApi::do_cycle()
if ((ret = process_request(&writer, req)) != ERROR_SUCCESS) {
return ret;
}
// donot keep alive, disconnect it.
// @see https://github.com/simple-rtmp-server/srs/issues/399
if (!req->is_keep_alive()) {
break;
}
}
return ret;