Skip to content

Test SSE connections are not leaked #481

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

Open
BrunoQuaresma opened this issue Apr 15, 2025 · 0 comments
Open

Test SSE connections are not leaked #481

BrunoQuaresma opened this issue Apr 15, 2025 · 0 comments

Comments

@BrunoQuaresma
Copy link
Contributor

Recently, we had an issue related to SSE connections leaked causing some overload in the API. It was fixed by #479, but we want to be sure this is not going to happen again. Since the test for this scenario is not trivial, we decided to create this follow-up issue.

After putting some thoughts on this, a good approach for testing could be having an integration test that would spin up a simple http server with an SSE endpoint, and use this custom streaming implementation to connect and disconnect the agent a few times, and see how many connections are still live. Keep in mind this is only one possibility, if you find a better, and easy way to test, please feel free to use it.

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

No branches or pull requests

1 participant