Skip to content

Connection is not reused #1838

@jonas0616

Description

@jonas0616

In provider_client.go, it sets http request Close option to true to close the connection after replying to the request.

// Set connection parameter to close the connection immediately when we've got the response
req.Close = true

It makes the connection cannot be reused, and every request requires to establish a new TCP connection. Not only does the latency increase, but also increase the overhead of both gophercloud clients and openstack services.

Furthermore, there are several requests do not close the response body after sending the request. It also makes the connections cannot be reused even after the Close option is set to false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions