Skip to content

[Server] Stdio session expires after an hour of silence #672

Open

Description

@dg

A stdio server stops answering after an hour without input: every request then gets Session not found or has expired, without an id, so the client cannot match it to its call, until it reconnects. InMemorySessionStore applies its default TTL of 3600 seconds and nothing renews the session on an idle connection. A stdio session has one client and lasts as long as the process, so it should not expire.

Reproduced on main on Linux with setSession(new InMemorySessionStore(2)), 5 seconds of silence and a ping. A workaround is setSession(new InMemorySessionStore(ttl: PHP_INT_MAX)).

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