Skip to content

Provider initialization can block indefinitely #55

Description

@devin-ai-integration

LaunchDarklyProvider.initialize calls ready_event.wait() with no timeout, so if the data source never reaches VALID or OFF (for example a network hang), set_provider never returns.

The OpenFeature provider spec (OFP) expects a positive configured start wait time to act as an initialization timeout. The Python provider takes only a Config, and start_wait is a constructor argument of LDClient rather than part of Config, so implementing this requires a new provider constructor parameter. That needs a naming decision consistent with the Ruby (wait_for_seconds) and JS (initTimeoutSeconds) providers.

Found during the weekly OpenFeature provider audit.

Written by Devin

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