1

Resolved

Memory leaks 32-48kB, when client logout from Websocket chat application

description

At first glance it's a cool framework and I tried chat application from examples. I launched Chat Websocket Server and Chat WebcCient written using MFC framework. I successfully connected to server. After a while I pressed button "logout". Connection was dropped, but In Windows Task Manger I noticed the following thing:
when I connected server Chat WebSocket server allocated additional 32kB memory, but when I press button logout and client successfully disconnected, this memory wasn't cleared.
It means, that each new connection allocate 32kB memory (sometimes 48kB) and doesn't clear it. It's very strange behavior, cause after 100 connections Chat Websocket Server memory consumption increased up-to ~3MB.
How can I clear this memory? is there a possibility to force server for cleaning unused memory?
If I have some misunderstanding, please explain me.

comments

charfeddineahmed wrote Jan 27, 2015 at 12:12 PM

Please use version 3. It is expected to be clean from memory leaks.

wrote Jan 29, 2015 at 7:23 AM