Fixed a CPU usage bug in Dynamic
This commit is contained in:
parent
e8f5411b17
commit
cbb984008e
1 changed files with 3 additions and 1 deletions
|
@ -177,7 +177,6 @@ namespace Connector_HTTP {
|
||||||
HTTP_S.SendResponse("404", "Not found", conn);
|
HTTP_S.SendResponse("404", "Not found", conn);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
ss.setBlocking(false);
|
|
||||||
Strm.waitForMeta(ss);
|
Strm.waitForMeta(ss);
|
||||||
}
|
}
|
||||||
if (HTTP_R.url.find(".abst") != std::string::npos){
|
if (HTTP_R.url.find(".abst") != std::string::npos){
|
||||||
|
@ -219,6 +218,9 @@ namespace Connector_HTTP {
|
||||||
HTTP_S.SendResponse("208", "Ask again later", conn);
|
HTTP_S.SendResponse("208", "Ask again later", conn);
|
||||||
HTTP_R.Clean(); //clean for any possible next requests
|
HTTP_R.Clean(); //clean for any possible next requests
|
||||||
std::cout << "Fragment after fragment " << ReqFragment << " not available yet" << std::endl;
|
std::cout << "Fragment after fragment " << ReqFragment << " not available yet" << std::endl;
|
||||||
|
if (ss.spool()){
|
||||||
|
while (Strm.parsePacket(ss.Received())){}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue