Skip to content

fix: do not block identify on SSE client shutdown completion #384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 3, 2024

Conversation

cwaldren-ld
Copy link
Contributor

@cwaldren-ld cwaldren-ld commented Apr 1, 2024

It appears that the async_shutdown method in Foxy client hangs indefinitely. It's not clear to me whether this is because the FD servers are misbehaving, or the client is somehow misbehaving.

In any case, this is causing Identify to hang because it waits for async_shutdown completion handler to be invoked before creating a new EventSource client.

One solution would be to not wait for that, and just make the new client immediately. That works, but it still leaves the old client sitting in memory waiting forever.

Instead, I've changed the shutdown logic to simply close the TCP socket.

@cwaldren-ld cwaldren-ld force-pushed the cw/sc-238745/identify-hang branch from 2151118 to 2d05fa1 Compare April 1, 2024 19:50
@cwaldren-ld cwaldren-ld force-pushed the cw/sc-238745/identify-hang branch from 2d05fa1 to 1b857a7 Compare April 1, 2024 21:16
@launchdarkly launchdarkly deleted a comment from shortcut-integration bot Apr 1, 2024
@cwaldren-ld cwaldren-ld force-pushed the cw/sc-238745/identify-hang branch from 23ca6a9 to dc087b9 Compare April 3, 2024 20:38
@cwaldren-ld cwaldren-ld marked this pull request as ready for review April 3, 2024 20:38
@cwaldren-ld cwaldren-ld requested a review from a team April 3, 2024 20:38
@cwaldren-ld cwaldren-ld merged commit ca270cd into main Apr 3, 2024
@cwaldren-ld cwaldren-ld deleted the cw/sc-238745/identify-hang branch April 3, 2024 22:00
@github-actions github-actions bot mentioned this pull request Apr 3, 2024
cwaldren-ld pushed a commit that referenced this pull request Apr 3, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>launchdarkly-cpp-client: 3.4.2</summary>

##
[3.4.2](launchdarkly-cpp-client-v3.4.1...launchdarkly-cpp-client-v3.4.2)
(2024-04-03)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * launchdarkly-cpp-sse-client bumped from 0.3.0 to 0.3.1
</details>

<details><summary>launchdarkly-cpp-server: 3.3.4</summary>

##
[3.3.4](launchdarkly-cpp-server-v3.3.3...launchdarkly-cpp-server-v3.3.4)
(2024-04-03)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * launchdarkly-cpp-sse-client bumped from 0.3.0 to 0.3.1
</details>

<details><summary>launchdarkly-cpp-server-redis-source: 2.1.4</summary>

##
[2.1.4](launchdarkly-cpp-server-redis-source-v2.1.3...launchdarkly-cpp-server-redis-source-v2.1.4)
(2024-04-03)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * launchdarkly-cpp-server bumped from 3.3.3 to 3.3.4
</details>

<details><summary>launchdarkly-cpp-sse-client: 0.3.1</summary>

##
[0.3.1](launchdarkly-cpp-sse-client-v0.3.0...launchdarkly-cpp-sse-client-v0.3.1)
(2024-04-03)


### Bug Fixes

* do not block identify on SSE client shutdown completion
([#384](#384))
([ca270cd](ca270cd))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants