Can't check websocket message in alb idle timeout?


Can't check websocket message in alb idle timeout?

Connected to ec2 websocket server using alb

I am getting disconnected due to idle timeout even though I am continuously sending messages.

Is there any way to solve it?

asked a year ago1117 views
1 Answer

As described in this document, the ALB idle timeout is 60 seconds by default.

By default, Elastic Load Balancing sets the idle timeout value for your load balancer to 60 seconds. Use the following procedure to set a different idle timeout value.

Therefore, if the timeout is shorter than the WebSocket message transmission, the ALB idle timeout value must be increased or the communication will be disconnected.
Try it for 300 seconds and see if the error goes away.

profile picture
answered a year ago
  • Already set the idle timeout to 3600 seconds Websocket messages are being sent and received every few minutes. Still disconnecting

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions