FlorianREGAZ / Python-Tls-Client

Advanced HTTP Library
MIT License
660 stars 136 forks source link

Add the `destroySession` method and support the `with` syntax. #97

Closed JohnDoe117 closed 8 months ago

JohnDoe117 commented 9 months ago

Not destroying the session can also cause memory leaks, so the destroySession method needs to be called.

Current problems: In the goland project, destroySession does not close the httpclient connection, even if we call it now, it will still cause memory leaks. I have submitted the code to the tls-client library to fix this issue.

If you need to test, I have compiled the package with the modifications I made.

FlorianREGAZ commented 8 months ago

Thank you very much for the pull request. I have merged it into main.