This repository has been archived by the owner on May 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
Streaming Connection not Timing Out #198
Comments
Hi. As the text under "Is this a support request?" in the issue template suggests, it might be better to direct this question to the support team - especially since it's an intermittent network-related issue that might depend on some details of your runtime environment rather than only on the SDK code. All I can say from the point of view of the SDK team is that it would be extremely odd for the SDK not to log anything related to connection attempts, and there are only two log lines shown here - both of which are INFO level, so if you did enable DEBUG level it's unclear what if any debug logging appeared. So whatever is going on, I don't think it is as simple as "it didn't have a timeout." |
Thanks @eli-darkly, will raise with support |
LaunchDarklyCI
pushed a commit
that referenced
this issue
Jun 21, 2021
**Requirements** - [x] I have added test coverage for new or changed functionality - [x] I have followed the repository's [pull request submission guidelines](../blob/master/CONTRIBUTING.md#submitting-pull-requests) - [x] I have validated my changes against all supported platform versions **Related issues** N/A **Describe the solution you've provided** This adds the pieces of functionality to support [traffic allocation](https://launchdarkly.atlassian.net/wiki/spaces/ENG/pages/1379762889/Traffic+Allocation+v2+Tech+Spec). Specifically, this adds the following. - A new `inExperiment` reason attribute that is set when a rollout is of `kind` `experiment` and the variation is not `untracked` - Tweaked feature event sending conditions: now, if a reason indicates that an evaluation was `inExperiment`, events and reasons are always sent. - Support for the `seed` property of rollouts which replaces the concatenated flag key and salt if present. **Describe alternatives you've considered** These are discussed in the comments of the previously linked traffic allocation spec. **Additional context** The same changes applied to the go server sdk. - launchdarkly/go-server-sdk-evaluation-private#38 - launchdarkly/go-server-sdk-evaluation-private#37 Add any other context about the pull request here.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is this a support request?
This issue tracker is maintained by LaunchDarkly SDK developers and is intended for feedback on the SDK code. If you're not sure whether the problem you are having is specifically related to the SDK, or to the LaunchDarkly service overall, it may be more appropriate to contact the LaunchDarkly support team; they can help to investigate the problem and will consult the SDK team if necessary. You can submit a support request by going here and clicking "submit a request", or by emailing support@launchdarkly.com.
Note that issues filed on this issue tracker are publicly accessible. Do not provide any private account information on your issues. If your problem is specific to your account, you should submit a support request as described above.
Describe the bug
Establishing initial connection to receive streaming events does not appear to timeout so that it can try again. Restarting the server manually to initiate reconnect allows the SDK to connect successfully. You can see from the logs below that the connection was initialized and 3 days later it was still not connected. FYI debug logging for the SDK was enabled during this time, so I would expect to have seen the "Opened LaunchDarkly stream connection" in the logs or some failure/retrying log message.
To reproduce
Initialize SDK for streaming connection (with proxy). Intermittent issue.
Expected behavior
If initial connection cannot be established within some timeout interval then close the connection and try again.
Logs
2020-09-18T19:14:00Z "Initializing stream processor to receive feature flag updates"
2020-09-21T14:51:26Z "Variation called before LaunchDarkly client initialization completed (did you wait for the 'ready' event?) - using default value"
SDK version
5.13.1
Language version, developer tools
nodejs v12.14.0
OS/platform
Ubuntu 18.04
Additional context
The text was updated successfully, but these errors were encountered: