Skip to content

Panic on shutdown of session and server #173

Closed
@StarpTech

Description

@StarpTech

Hi, we encountered a panic because the session channel is closed twice.

  1. close(session.done)
  2. close(session.done)

This can happen when the request context and server are shut down simultaneously. Additionally, when unregistering a session, I’d also expect the session to be aborted. This can be achieved naturally by closing the channel and listen on the close chan event. This was addressed in #128

Therefore, I saw that we have a hook for RegisterSession; it would be natural to add the counterpart UnregisterSession to it as well.

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