New feature, improvement proposal
Currently each connection being established via the UrlTransporter is unconditionally released for example in
. Although this is safe in terms of releasing the http connection it would also prevent connection pooling.
Instead one should rather just close the returned input streams. Compare with the Javadoc in https://docs.oracle.com/javase/8/docs/api/java/net/HttpURLConnection.html.
It is important though to close both regular and potentially also error input stream.
Particularly as TLS handshakes are expensive connection pooling usually has a big performance impact.
New feature, improvement proposal
Currently each connection being established via the UrlTransporter is unconditionally released for example in
maven-resolver/maven-resolver-transport-url/src/main/java/org/eclipse/aether/transport/url/UrlTransporter.java
Line 251 in 45482a8
Instead one should rather just close the returned input streams. Compare with the Javadoc in https://docs.oracle.com/javase/8/docs/api/java/net/HttpURLConnection.html.
It is important though to close both regular and potentially also error input stream.
Particularly as TLS handshakes are expensive connection pooling usually has a big performance impact.