Fixed a CPU usage bug in Dynamic

This commit is contained in:
Erik Zandvliet 2013-09-10 15:11:36 +02:00
parent e8f5411b17
commit cbb984008e

View file

@ -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;