Responses not being closed when using okhttp to send requests
Sounie opened this issue · comments
Stephen Souness commented
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