Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Leak via Swagger for async calls #26

Closed
devyolawo opened this issue Jan 27, 2021 · 5 comments
Closed

Memory Leak via Swagger for async calls #26

devyolawo opened this issue Jan 27, 2021 · 5 comments

Comments

@devyolawo
Copy link

All async methods (i.e. async send of transcational mail) are producing a memory leak (interceptors). Looks like this is connected to swagger-api/swagger-codegen#8915

@hiperbou
Copy link

The same problem is described here kubernetes-client/java#482 and it seems it was fixed by updating to openapi-generator v4.2.0

This library as of v5.2.0 can't be used in production code if you want to use *Async functions.

@lud
Copy link

lud commented Jan 6, 2022

Hi,

It looks like it is fixed in swagger : swagger-api/swagger-codegen#8053

But how can I know if this is also fixed in this library ? I am new to Java and I have no clue. I looked at the pom.xml but there is no swagger-codegen in. I found this: <swagger-core-version>1.5.18</swagger-core-version> and it looks fairly outdated but I am not sure the version number is the same as for swagger-codegen.

@Kool-Hussain
Copy link
Contributor

Hi @lud ,
We are planning to update the version of OkHttp, it should fix this issue. We will update you once it is done.

@Kool-Hussain
Copy link
Contributor

Updated in new release (v7.0.0). Please check..!

@lud
Copy link

lud commented Apr 29, 2023

Sorry but I do not work for this project anymore, I do not even have the source code to check.

But thanks anyway, I'm sure it is still useful for many people!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants