-
In 5.11, the new HTTP abstraction was introduced which abstracts the OkHttp client with Fabric8's own classes. However, the HttpResponse class does not seem to have any method to close the response. When the response is not closed, OkHttp is leaking connections and complaining to the log:
Is this some feature still missing in 5.11? Or what is the right way to close the response? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Generally the end user is not responsible for closing the response. Only if a stream is directly returned will the response be held open - something like a pod operation getLogReader. In those cases the user is responsible for closing the stream to close the response. Can you use the log override to determine what code path is being warned about here? |
Beta Was this translation helpful? Give feedback.
Generally the end user is not responsible for closing the response. Only if a stream is directly returned will the response be held open - something like a pod operation getLogReader. In those cases the user is responsible for closing the stream to close the response.
Can you use the log override to determine what code path is being warned about here?