Skip to content

Test SSE connections are not leaked #481

Closed
Closed

Description

@BrunoQuaresma

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.

Activity

  1. EhabY commented on Sep 17, 2025

    @EhabY
    Collaborator

    How relevant is this after #580 has landed? We do not use any SSEs now and rely solely on a one-way WebSocket connection which has a different life-cycle.

  2. EhabY commented on May 15, 2026

    @EhabY
    Collaborator

    Closing this as in-actionable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions