Skip to content

it is passible to handle keep-alive connections by the library? #165

Closed

Description

@andrejlevkovitch

http.request create new connection every call go method and close stream. So there is a way to reuse connection several times by keep-alive?

Activity

  1. daurnimator commented on Mar 1, 2020

    @daurnimator
    Owner

    The library supports it for the lower level connection and stream apis, but not for the high level request object. The hard bit is knowing if an existing connection is suitable for a new request (need to check dns, certificates, any SSL settings, http version selection, etc. its quite a long list)

    See #121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions