Skip to content

Enable connection pooling with UrlTransporter #1974

Description

@kwin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions