Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

Created Unassigned: Web api server memory leak [348]

$
0
0
Hi,
I am using casablanca from NUGet (<package id="cpprestsdk" version="2.4.0.1" targetFramework="Native" />). VS2013. I have a cpu and memory leak on practical empty project and one project only returning some demo JSON values. I tested it with perfmon so I do not have any leak report. Can anybody help? This is simplified version:

void request_handler(http_request req)
{
http_response response(web::http::status_codes::OK);
req.reply(response);
}
int main()
{
http_listener listener(U("http://localhost:9888/services/"));
listener.open().wait();

listener.support(&request_handler);

while (true) {
this_thread::sleep_for(chrono::milliseconds(2000));
}

...
}

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>