armeria icon indicating copy to clipboard operation
armeria copied to clipboard

Close a WebSocket when it is idle

Open ikhoon opened this issue 1 year ago • 0 comments

Because WebSocket is mostly a long-running request, it is not easy to limit when it will end with a request timeout. It would make more sense to terminate the request when no messages are sent or received for a certain period of time.

The existing idle timeout handler operates at the connection level so a new scheduler that can perform at the WebSocket level is necessary.

ikhoon avatar May 23 '24 07:05 ikhoon