Skip to content

How to handle the idle of the inactive session #6

Description

@minchopm

I'm experiencing an issue in my Go project related to connection handling. When a connection drops for a few seconds and the timeout is configured for, say, 30 seconds, the sUni.Write method attempts to send a message. However, during this period, the session seems to be inactive, leading to a significant spike in CPU load.

A simple way to reproduce this issue is by refreshing the browser while the user is connected.

Could you provide guidance or a solution for managing the idle time period or ensuring that the sUni.Write method doesn't cause high CPU utilization when the session is inactive?

Thank you for your assistance.

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