Fixed #10 CCServer spontaneously freezes and holds CPU 100%
This commit is contained in:
parent
9ef2eea854
commit
84a3a01dbf
2 changed files with 4 additions and 2 deletions
|
@ -82,6 +82,8 @@ unsigned Service::handleGET(const Options* options, const std::string& url, cons
|
|||
}
|
||||
}
|
||||
|
||||
LOG_INFO("Resp. lengt: %d", resp.length());
|
||||
|
||||
uv_mutex_unlock(&m_mutex);
|
||||
|
||||
return resultCode;
|
||||
|
@ -134,7 +136,7 @@ unsigned Service::getClientConfig(const Options* options, const std::string& cli
|
|||
document.Parse(data.str().c_str());
|
||||
|
||||
if (!document.HasParseError()) {
|
||||
rapidjson::StringBuffer buffer(0, 65536);
|
||||
rapidjson::StringBuffer buffer(0, 4096);
|
||||
rapidjson::Writer<rapidjson::StringBuffer> writer(buffer);
|
||||
writer.SetMaxDecimalPlaces(10);
|
||||
document.Accept(writer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue