Lehel44 commented on pull request #5802: URL: https://github.com/apache/nifi/pull/5802#issuecomment-1084552744
@exceptionfactory Thank you for your feedback. In regard to your question concerning the OkHttp object in the SalesforceRestService::request method, it was closed since the Response object was declared within a try-with-resources block, therefore response.close() was called. This also caused some issues because the inputstream is now handed to the processor, which became responsible for closing the Reponse object. Closing the inputstream will also close the response body, according to [this article](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-response-body/). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
