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

Closed Unassigned: Casablanca 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 (few hours testing) and one project only returning some demo JSON values (over weekend). Both test had get requests 10 times per second. Demo data was a list of 20 items with 3 strings. I tested it with perfmon so I do not have any leak report. Perfmon screenshot in attachment. 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>