Skip to content

Event streams should request resync after every overflow #756

Closed

Description

@breken-ai

What happened?

After an event stream's queue overflows, the server asks the client to resync. On a second overflow on the same connection, /event and /global/event drop events without sending another server.connected resync frame. The workspace can then stay stale until reload.

Steps to reproduce

  1. Keep one event-stream connection open.
  2. Overflow its bounded queue twice, allowing the client to consume the first resync frame between overflows.
  3. Observe that only the first overflow is followed by server.connected.

The two focused regressions in test/server/event-stream.test.ts and test/server/global-event-stream.test.ts fail on current main (3b73f8d) and pass with the fix.

How did you install OpenScience?

From source (bun dev).

OpenScience version

Source commit 3b73f8d.

Provider and model

Not applicable; this is an event-stream server behavior.

Operating system

Not OS-specific; reproduced in the Bun test harness.

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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions