Repository navigation
fix: treat unknown/constrained network access as connected - #323
Merged
Merged
Conversation
…ld start (SDK-2755)
jsonbailey
approved these changes
Jul 28, 2026
tanderson-ld
pushed a commit
that referenced
this pull request
Jul 28, 2026
🤖 I have created a release *beep* *boop* --- ## [5.9.3](LaunchDarkly.ClientSdk-v5.9.2...LaunchDarkly.ClientSdk-v5.9.3) (2026-07-28) ### Bug Fixes * treat unknown/constrained network access as connected ([#323](#323)) ([a633c9a](a633c9a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Mechanical release/version metadata only in this PR; the behavioral fix ships in the tagged release, not as new logic in the diff. > > **Overview** > Release Please bumps **LaunchDarkly.ClientSdk** from **5.9.2** to **5.9.3** across the manifest, `LaunchDarkly.ClientSdk.csproj`, `CHANGELOG.md`, and `PROVENANCE.md`. > > The **5.9.3** patch documents bug fix [#323](#323): connectivity handling now treats **unknown** and **constrained** network access (e.g. MAUI cold-start `Unknown`, metered **ConstrainedInternet**) as **connected**, so the client is less likely to stay offline or skip reconnecting when the OS has not yet reported full internet access. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 5fb1731. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
evgenygunko
pushed a commit
to evgenygunko/CopyWordsDA
that referenced
this pull request
Jul 29, 2026
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [LaunchDarkly.ClientSdk](https://github.com/launchdarkly/dotnet-core) | `5.9.1` → `5.9.3` |  |  | --- ### Release Notes <details> <summary>launchdarkly/dotnet-core (LaunchDarkly.ClientSdk)</summary> ### [`v5.9.3`](https://github.com/launchdarkly/dotnet-core/releases/tag/LaunchDarkly.ClientSdk-v5.9.3): LaunchDarkly.ClientSdk: v5.9.3 [Compare Source](launchdarkly/dotnet-core@LaunchDarkly.ClientSdk-v5.9.2...LaunchDarkly.ClientSdk-v5.9.3) ##### Bug Fixes - treat unknown/constrained network access as connected ([#​323](launchdarkly/dotnet-core#323)) ([a633c9a](launchdarkly/dotnet-core@a633c9a)) *** This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). <!-- CURSOR_SUMMARY --> ### [`v5.9.2`](https://github.com/launchdarkly/dotnet-core/releases/tag/LaunchDarkly.ClientSdk-v5.9.2): LaunchDarkly.ClientSdk: v5.9.2 [Compare Source](launchdarkly/dotnet-core@LaunchDarkly.ClientSdk-v5.9.1...LaunchDarkly.ClientSdk-v5.9.2) ##### Bug Fixes - add defensive cycle guard to prerequisite evaluation ([#​317](launchdarkly/dotnet-core#317)) ([babb87a](launchdarkly/dotnet-core@babb87a)) *** This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). <!-- CURSOR_SUMMARY --> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or PR is renamed to start with "rebase!". 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
tanderson-ld
added a commit
that referenced
this pull request
Aug 10, 2026
…all (SDK-2755) (#328) **Related issues** - Fix PR in dotnet-eventsource: launchdarkly/dotnet-eventsource#124 - 5.3.2 release notes: https://github.com/launchdarkly/dotnet-eventsource/releases/tag/5.3.2 **Describe the solution you've provided** Bumps `LaunchDarkly.EventSource` from 5.3.1 to 5.3.2 in `LaunchDarkly.ClientSdk`. The 5.3.2 release increases the SSE read buffer from 1024 to 8192 bytes to bypass a stall in `Xamarin.Android.Net.AndroidMessageHandler`'s BufferedStream small-count code path, which caused MAUI Android consumers' SSE reads to block for ~60 s waiting for the next server keepalive. The fix was validated end-to-end with a new sse-contract-tests payload-size sweep run against a .NET-for-Android build of the SSE test service in an Android emulator; the sweep flags every regression to a sub-4096-byte buffer. **Describe alternatives you've considered** - Working around the stall in-repo (e.g., swapping out `AndroidMessageHandler` for a different HTTP handler) was rejected as riskier than adjusting the buffer size at the SSE layer. - The `ServerSdk` consumer of `LaunchDarkly.EventSource` is out of scope for this PR: the stall is Android-only, so bumping `ServerSdk` would be pure hygiene rather than a fix. **Additional context** - No API changes; single-line `PackageReference` version bump. - Companion to previously merged #323, which addressed the network-connectivity side of the same customer-reported symptom. - Verified locally that `LaunchDarkly.ClientSdk` builds cleanly against 5.3.2 for both `netstandard2.0` and `net8.0-android`. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Overview** > **Bumps** `LaunchDarkly.EventSource` from **5.3.1** to **5.3.2** in `LaunchDarkly.ClientSdk` only (no API or source changes). > > The newer EventSource release increases the SSE read buffer (1024 → 8192 bytes) so MAUI Android clients avoid long (~60s) stalls when `AndroidMessageHandler`’s buffered stream blocks on small reads until the next keepalive. `LaunchDarkly.ServerSdk` is intentionally left on 5.3.1 because the issue is Android-specific. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit b73204d. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Microsoft.Maui.Networking.Connectivity.Current.NetworkAccesscan transiently reportUnknownat process start — MAUI's platform callback (NetworkCallbackon Android,NWPathMonitoron iOS/macOS,NetworkInformationon Windows) hasn't yet been given the initial availability signal by the framework. BecauseDefaultConnectivityStateManager.UpdateConnectedStatuspreviously required exactlyInternet,LdClient's constructor read_networkEnabled = false,Start()took the offline fast-exit branch inConnectionManager.OpenOrCloseConnectionIfNecessary, andInitreturned "success" in ~300ms with an empty flag store. The SDK then had to wait for MAUI to fireConnectivityChangedbefore it would even attempt to open a stream.This PR updates
IsConsideredConnectedto treatUnknownandConstrainedInternetas connected in addition toInternet.LocalandNoneremain disconnected.Scope
DefaultConnectivityStateManageris shared code andPlatformConnectivity.LdNetworkAccessmaps directly to MAUI's cross-platformConnectivity.NetworkAccess. TheConnectivity.maui.csimplementation is compiled into every MAUI target via<Compile Include="**\*.maui.cs"/>in each target's ItemGroup.Connectivity.netstandard.csreturnsLdNetworkAccess.Internetunconditionally, so it never hit the buggy branch and doesn't hit the new one either.Why not "anything but
None"ConnectionManager.SetNetworkEnabled(bool)is a no-op when the value doesn't change. If we optimistically treatedLocalas connected, the eventualLocal -> Internettransition wouldn't triggerOpenOrCloseConnectionIfNecessary(the boolean already matches), and the SDK would rely on theEventSource's internal retry backoff — up to ~30s late reconnecting after network fully recovers. KeepingLocaldisconnected preserves the deterministic wake-up on that transition.ConstrainedInternet(captive portals, metered restrictions) typically resolves upward toInternet, so attempting is cheap and the same race isn't a concern in practice.Test plan
dotnet test pkgs/sdk/client/test/LaunchDarkly.ClientSdk.Tests -f net8.0— 377/377 passing, including 5 new tests inDefaultConnectivityStateManagerTestcovering everyLdNetworkAccessenum value.netstandard2.0,net8.0,net8.0-android,net8.0-ios,net8.0-maccatalyst,net8.0-windows. ConfirmedIsConsideredConnectedis present in the iOS and Mac Catalyst output DLLs.