Skip to content

[Suggestion] SSE sessions should not listen to IncomingMessage's event close #116

Description

@zimtsui

In Standard SSE, everything works well. However non-standard POST-SSE is widely used in LLM streaming responses.

Node.js didn't concisely define the semantic meaning of IncomingMessage's event close. The event close has several ambiguous meaning in semantics:

  1. The incoming data is completed consumed.
  2. The client wanna half disconnect.

If the server consumes the POST request body after SSE session is established, the session's event disconnect will occur when the request body is completed consumed, even though the client expects to continue receiving response chunks.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions