
Hello,
We have been running a Boost ASIO 1.40 based server successfully for a while, handling hundreds of connections without any issues.
But we recently saw some unusual memory usage and started digging into it a bit.
We use Asynchronous IO with SSL.
We are seeing that in the server side every time a connection occurs some memory is being used up and never getting really freed after the connection goes away.
We use Resident Memory value of the server to measure memory usage of the server process.
This occurs only in Linux, works fine under Windows.
This is easy to reproduce: simply take the server sample and run it under Linux.
http://www.boost.org/doc/libs/1_37_0/doc/html/boost_asio/example/ssl/server....
(The only change there being to make SSL verification to none.)
For the client side, make a lot of connections:
typedef boost::shared_ptr<client> client_ptr;
std::vector