Skip to content

RFC: Tie MAX_GSO_SEGMENTS on Windows to socket state #2491

@thomaseizinger

Description

@thomaseizinger

Currently, MAX_GSO_SEGMENTS on Windows is wrapped in a LazyLock and therefore only evaluates once for the entire lifetime of the program in memory.

In our experience, the support for things like URO/GRO/GSO is tied to the current network driver and thus can change at runtime when the user e.g. plugs their laptop into a dock.

Hence, I believe it would be good to tie this state to the UdpSocketState instead to allow applications to re-evaluate this on their own terms. In Firezone for example, we detect when the user roams networks and reset all kinds of network state in order to make things work again.

Thoughts?

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