Closed
Description
Summary
The documentation states:
When you use exchange(), you must always use any of the body or toEntity methods of ClientResponse to ensure resources are released and to avoid potential issues with HTTP connection pooling. You can use bodyToMono(Void.class) if no response content is expected. However, if the response does have content, the connection is closed and is not placed back in the pool.
There are multiple places where the status is looked at and if it isn't 2xx then it throws an exception without consuming the body which causes a leak.