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

Fix #636, FD leak for requesting empty HTTP stream. 2.0.241

This commit is contained in:
winlin 2017-04-30 12:03:31 +08:00
parent ff87318b95
commit ae5450181c
7 changed files with 110 additions and 2 deletions

View file

@ -1310,6 +1310,19 @@ SrsResponseOnlyHttpConn::~SrsResponseOnlyHttpConn()
{
}
int SrsResponseOnlyHttpConn::pop_message(ISrsHttpMessage** preq)
{
int ret = ERROR_SUCCESS;
SrsStSocket skt(stfd);
if ((ret = parser->parse_message(&skt, this, preq)) != ERROR_SUCCESS) {
return ret;
}
return ret;
}
int SrsResponseOnlyHttpConn::on_got_http_message(ISrsHttpMessage* msg)
{
int ret = ERROR_SUCCESS;