Hi all,

I have a TLS enabled client and server. Both are working fine as far as the communication is concerned. For testing I loop my client ,such that it establish a connection,send and receive some sample data and release the connection.

I just noticed that the memory at the client side keeps increasing for every looping ! (appx. 6kb per connection ). Server side is fine.  I guess there might be some logical error in my function calls. The following is the general structure of my func calls.


initialize the context

for ( loop )
{
     establish TCP connection
     SSL connection
     data exchange

    SSL_shutdown(ssl);
    BIO_free
    SSL_free
    close(socket);
}
SSL_CTX_free(context);


I also tried to move in the context initialization within the loop and free the context for every connection. This doesnt help either.  I know im missing something. but i cudnt open my third eye :(

I know similar issue was discussed very recently. Those hints didnt helped me much.

THANKS IN ADVANCE.
Samy



Reply via email to