Facing memory leak for SSL with python3.8, twisted 20.3.0, OpenSSL 1.1.1g

351 views Asked by At

I am new to python. I am getting memory leak for HTTPs requests. Seems something is wrong around SSL. I am using python3.8, twisted 20.3.0, OpenSSL 1.1.1g.

I tried downgrading openssl version to 1.0.2k, downgraded twisted to 19.10.0 but nothing worked. I saw continuous increase in memory usage. Once I stop the python process memory usage return backs to normal.

Also, I do not see increase in memory usage when I comment the code for HTTPs requests. i.e. reactor.connectSSL(host, port, factory, contextFactory)

How can I reduce the scope of issue. How to identity which of the following is the reason for memory leak?

  • OpenSSL(c library)
  • pyopenssl (python module)
  • python 3.8
  • twisted

It would be great if somebody will help in getting this issue resolved or put some light on it.

0

There are 0 answers