Fix for MistConnHTTP taking crazy CPU cycles when receiving partial HTTP requests.
This commit is contained in:
parent
c1ba9c618b
commit
61945894d4
1 changed files with 3 additions and 0 deletions
|
@ -369,6 +369,9 @@ namespace Connector_HTTP{
|
||||||
std::cout << "Completed request (" << conn->getSocket() << ") " << handler << " in " << (Util::getMS() - startms) << " ms" << std::endl;
|
std::cout << "Completed request (" << conn->getSocket() << ") " << handler << " in " << (Util::getMS() - startms) << " ms" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
Client.Clean(); //clean for any possible next requests
|
Client.Clean(); //clean for any possible next requests
|
||||||
|
}else{
|
||||||
|
//make sure connections get cleaned up properly when disconnected part-way into a request
|
||||||
|
conn->spool();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
usleep(10000);//sleep 10ms
|
usleep(10000);//sleep 10ms
|
||||||
|
|
Loading…
Add table
Reference in a new issue