Closed ngangomsamananda closed 4 months ago
Hi @ngangomsamananda , thank you for the report. I will investigate.
Filed internally as 238745.
I can reproduce and will work on a fix as soon as possible.
@cwaldren-ld Thanks.
Hi @ngangomsamananda, I have released a fix for this: v3.4.2
Please test and let me know if the issue is resolved.
@cwaldren-ld I have tested v3.4.2 and the issue is resolved. Thanks for the quick fix.
@ngangomsamananda thank you for your patience.
We are updating client sdk (c binding) from 2.5.2 to v3.4.0 in our application. I followed the instructions given in https://docs.launchdarkly.com/sdk/features/identify to identify and change the new context.
Describe the bug In version 3.4.0, identify and change the new context takes 4-5 minutes while in v2.5.2 takes only few seconds.
To reproduce
include < iostream >
include <launchdarkly/client_side/bindings/c/sdk.h>
include <launchdarkly/bindings/c/context_builder.h>
include <launchdarkly/client_side/bindings/c/config/builder.h>
include <launchdarkly/bindings/c/object_builder.h>
include <launchdarkly/bindings/c/memory_routines.h>
include < mutex >
include
int main() { const char userid = "user-id"; const char mobile_key = "mobile-key-123-abc"; LDClientConfigBuilder ConfigBuilder = LDClientConfigBuilder_New(mobile_key); LDClientConfigBuilder_Events_PrivateAttribute(ConfigBuilder, "hubId");
}`
In the above sample code, replace
userid
,mobile_key
andflagName
with an appropriate value and run.Expected behavior Identify and change of new context should take only few seconds just the old version (say 2.5.2). 4-5 minutes to identify and change a new context is not normal.
SDK version 3.4.0 I had also tried 3.1.0, I gives the same result.
Language version, developer tools For instance, C++17 or C11. If you are using a language that requires a separate compiler, such as C, please include the name and version of the compiler too.
OS/platform Windows 10
Additional context