Skip to content

Httpclient stale dns #8

Open
Open
@CarbonNeuron

Description

@CarbonNeuron

The current way that httpclient is being used by default causes DNS entries to become stale. More information on this, and a fix can be found here on Microsoft docs.
It looks like it can be a simple fix by instead of passing a httpclienthandler in

public WLedClient(string baseUri) : this(new HttpClientHandler(), baseUri)

Passing a SocketsHttpHandler with the PooledConnectionLifetime property set to something reasonable.

If I get around to it later, and this hasn't been done yet, I'll probably submit a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions