Skip to content

Releases: launchdarkly/python-server-sdk

6.13.0

30 Mar 23:31
Compare
Choose a tag to compare

[6.13.0] - 2020-03-30

Added:

  • The new Config parameter initial_reconnect_delay allows customizing of the base retry delay for stream connections (that is, the delay for the first reconnection after a failure; subsequent retries use an exponential backoff).
  • The new Config parameter http and the HTTPConfig class allow advanced configuration of the SDK's network behavior, such as specifying a custom certificate authority for connecting to a proxy/gateway that uses a self-signed certificate.

Changed:

  • The retry delay for stream connections has been changed as follows: it uses an exponential backoff no matter what type of error occurred (previously, some kinds of errors had a hard-coded 1-second delay), and each delay is reduced by a random jitter of 0-50% rather than 0-100%. Also, if a connection remains active for at least 60 seconds, the backoff is reset to the initial value. This makes the Python SDK's behavior consistent with other LaunchDarkly SDKs.

Deprecated:

  • The existing Config properties connect_timeout, read_timeout, and verify_ssl are now deprecated and superseded by the equivalent properties in HTTPConfig.

6.12.2

20 Mar 00:15
Compare
Choose a tag to compare

[6.12.2] - 2020-03-19

Fixed:

  • Setting verify_ssl to False in the client configuration did not have the expected effect of completely turning off SSL/TLS verification, because it still left certificate verification in effect, so it would allow a totally insecure connection but reject a secure connection whose certificate had an unknown CA. This has been changed so that it will turn off certificate verification as well. This is not a recommended practice and a future version of the SDK will add a way to specify a custom certificate authority instead (to support, for instance, using the Relay Proxy with a self-signed certificate).

6.12.1

12 Feb 21:15
Compare
Choose a tag to compare

[6.12.1] - 2020-02-12

Fixed:

  • When diagnostic events are enabled (as they are by default), the SDK was logging spurious warning messages saying "Unhandled exception in event processor. Diagnostic event was not sent. ['DiagnosticEventSendTask' object has no attribute '_response_fn']". The events were still being sent; the misleading message has been removed.

6.12.0

11 Feb 22:10
Compare
Choose a tag to compare

[6.12.0] - 2020-02-11

Note: if you are using the LaunchDarkly Relay Proxy to forward events, update the Relay to version 5.10.0 or later before updating to this Python SDK version.

Added:

  • The SDK now periodically sends diagnostic data to LaunchDarkly, describing the version and configuration of the SDK, the architecture and version of the runtime platform, and performance statistics. No credentials, hostnames, or other identifiable values are included. This behavior can be disabled with the diagnostic_opt_out option or configured with diagnostic_recording_interval.

Fixed:

  • The SDK now specifies a uniquely identifiable request header when sending events to LaunchDarkly to ensure that events are only processed once, even if the SDK sends them two times due to a failed initial attempt.

6.11.3

30 Dec 21:15
Compare
Choose a tag to compare

[6.11.3] - 2019-12-30

Fixed:

  • In rare circumstances (depending on the exact data in the flag configuration, the flag's salt value, and the user properties), a percentage rollout could fail and return a default value, logging the error "variation/rollout object with no variation or rollout". This would happen if the user's hashed value fell exactly at the end of the last "bucket" (the last variation defined in the rollout). This has been fixed so that the user will get the last variation.

6.11.2

10 Dec 00:10
Compare
Choose a tag to compare

[6.11.2] - 2019-12-09

Fixed:

  • Changed Files.new_data_source() to use yaml.safe_load() instead of yaml.load() for YAML/JSON test data parsing. This disables pyyaml extended syntax features that could allow arbitrary code execution. (#136)

6.11.1

21 Nov 17:47
Compare
Choose a tag to compare

[6.11.1] - 2019-11-21

Fixed:

  • Fixed an incompatibility with Python 3.3 due to an unpinned dependency on expiringdict.
  • Fixed usages that caused a SyntaxWarning in Python 3.8. (Thanks, bunchesofdonald!)
  • Updated CI scripts so a SyntaxWarning will always cause a build failure, and added a 3.8 build.

6.11.0

31 Oct 21:23
Compare
Choose a tag to compare

[6.11.0] - 2019-10-31

Added:

  • The new Config parameter http_proxy allows you to specify a proxy server programmatically rather than by using environment variables. This may be helpful if you want the SDK to use a proxy, but do not want other Python code to use the proxy. (Thanks, gangeli!)

6.10.2

30 Oct 23:53
Compare
Choose a tag to compare

[6.10.2] - 2019-10-30

Fixed:

  • Since version 6.1.0, the SDK was not respecting the standard https_proxy environment variable for specifying a proxy (because that variable is not used by urllib3). This has been fixed.
  • In streaming mode, the SDK could fail to apply a feature flag update if it exceeded the LaunchDarkly service's maximum streaming message size; the service uses an alternate delivery mechanism in this case, which was broken in the SDK. This bug was also introduced in version 6.1.0.
  • Fixed the generated documentation to exclude special members like __dict__.

6.10.1

20 Aug 18:25
Compare
Choose a tag to compare

[6.10.1] - 2019-08-20

Fixed:

  • Fixed a bug in 6.10.0 that prevented analytics events from being generated for missing flags.