Can't check websocket message in alb idle timeout?

0

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?

joon
질문됨 일 년 전1025회 조회
1개 답변
0

As described in this document, the ALB idle timeout is 60 seconds by default.
https://docs.aws.amazon.com/elasticloadbalancing/latest/application/application-load-balancers.html#connection-idle-timeout

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
전문가
답변함 일 년 전
  • Already set the idle timeout to 3600 seconds Websocket messages are being sent and received every few minutes. Still disconnecting

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠