WebSocket is now disconnected in 60 seconds after HTTPS conversion on AWS

When I changed to HTTPS on AWS, the communication of the chat function I created was immediately disconnected ...

If you do nothing for about 1 minute, it will disconnect.

It seems that the load balancer setting is the cause.

Since the idle timeout setting is 60 seconds by default, WebSocket will be disconnected in 60 seconds if nothing is done.

So change the settings.

  1. From the AWS console, "EC2" → "Load Balancer" キャプチャ001.PNG

  2. In "Edit Attribute", change the idle timeout value from 60 seconds to the time you do not want to be disconnected. キャプチャ002.PNG

  3. Done. キャプチャ003.PNG

This will not disconnect until the set time.

Recommended Posts

WebSocket is now disconnected in 60 seconds after HTTPS conversion on AWS
There is after Kotlin conversion
Is Java on AWS Lambda slow?
all-ruby is now available in ghcr.io/ruby/all-ruby