You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Http1ClientResponseImpl field entityFullyRead is never set to true and because of that response close method closes connection as well. If response is handled as a String, everything works as expected.
Steps to reproduce
Let WebClient handle the response as JsonObject type from JSON-P
Connection is always closed ofter this, even thought it is reusable.
Possible solution:
Add method close() to the ReadableEntityBase.EntityProcessedRunnable class. This method could have similar logic as ReadableEntityBase.RequestingInputStream#ensureBuffer does.
The text was updated successfully, but these errors were encountered:
Verdent
changed the title
WebClient connection is not properly returned to the shared pool
WebClient connection is not properly returned to the pool
Apr 19, 2024
Environment Details
Problem Description
Http1ClientResponseImpl
fieldentityFullyRead
is never set to true and because of that response close method closes connection as well. If response is handled as a String, everything works as expected.Steps to reproduce
Possible solution:
Add method
close()
to theReadableEntityBase.EntityProcessedRunnable
class. This method could have similar logic asReadableEntityBase.RequestingInputStream#ensureBuffer
does.The text was updated successfully, but these errors were encountered: