mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
parent
b21f92f97a
commit
2ed2513f08
11 changed files with 44 additions and 212 deletions
|
@ -536,7 +536,7 @@ SrsHttpRecvThread::SrsHttpRecvThread(SrsResponseOnlyHttpConn* c)
|
|||
{
|
||||
conn = c;
|
||||
error = ERROR_SUCCESS;
|
||||
trd = new SrsOneCycleThread("http-receive", this);
|
||||
trd = new SrsCoroutine("http-receive", this, _srs_context->get_id());
|
||||
}
|
||||
|
||||
SrsHttpRecvThread::~SrsHttpRecvThread()
|
||||
|
@ -558,7 +558,7 @@ int SrsHttpRecvThread::cycle()
|
|||
{
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
while (true) {
|
||||
while (!trd->pull()) {
|
||||
ISrsHttpMessage* req = NULL;
|
||||
SrsAutoFree(ISrsHttpMessage, req);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue