Hi all,
I am using boost 1.76.0 version. I have slightly modified the example
program http_server_sync_ssl.cpp to just dump the payload it receives and i
have used certificates with ssl context. When I run the program with
valgrind, the "still reachable" memory keeps increasing with time. This is
one example:
==17719== 38,880 bytes in 60 blocks are still reachable in loss record 740
of 740
==17719== at 0x4C312EF: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==17719== by 0x567F438: CRYPTO_zalloc (in /usr/lib64/libcrypto.so.1.1)
==17719== by 0x52AA5CA: SSL_SESSION_new (in /usr/lib64/libssl.so.1.1)
==17719== by 0x52AAE22: ??? (in /usr/lib64/libssl.so.1.1)
==17719== by 0x52C8A06: ??? (in /usr/lib64/libssl.so.1.1)
==17719== by 0x52B7FF6: ??? (in /usr/lib64/libssl.so.1.1)
==17719== by 0x52A3F43: SSL_do_handshake (in /usr/lib64/libssl.so.1.1)
==17719== by 0x419630:
boost::asio::ssl::detail::engine::do_accept(void*, unsigned long)
(engine.ipp:316)
==17719== by 0x4193E3: boost::asio::ssl::detail::engine::perform(int
(boost::asio::ssl::detail::engine::*)(void*, unsigned long), void*,
unsigned long, boost::system::error_code&, unsigned long*) (engine.ipp:248)
==17719== by 0x418F6D:
boost::asio::ssl::detail::engine::handshake(boost::asio::ssl::stream_base::handshake_type,
boost::system::error_code&) (engine.ipp:148)
==17719== by 0x419778:
boost::asio::ssl::detail::handshake_op::operator()(boost::asio::ssl::detail::engine&,
boost::system::error_code&, unsigned long&) const (handshake_op.hpp:47)
==17719== by 0x424DB8: unsigned long
boost::asio::ssl::detail::io