eBay / ebay-oauth-java-client

eBay OAuth APIs client for Java

Home Page:https://developer.ebay.com/api-docs/static/oauth-tokens.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Responses not being closed when using okhttp to send requests

Sounie opened this issue · comments

From the okhttp documentation ( https://square.github.io/okhttp/4.x/okhttp/okhttp3/-response-body/ )

"Each response body is backed by a limited resource like a socket (live network responses) or an open file (for cached responses). Failing to close the response body will leak resources and may ultimately cause the application to slow down or crash."

This should be a simple enough change to apply in OAuth2Api.java and OAuth2Util.java