Application load balancer blocks websocket connections?

0

I made a websocket server on fargate, but I have an connection issue with application load balancer. The server works fine without ALB (with direct access to the IP of the fargate task). But when I access via ALB, it blocks the websocket connection. I enabled the stickiness of the target group. How can we use websocket with ALB?

nemy
已提问 2 年前1105 查看次数
1 回答
0

Check that the client can reach the ALB and that the ALB's security group is configured in your fargate backend.

profile pictureAWS
专家
Uri
已回答 2 年前
  • The security group of the ALB and the service using the ALB is the same one of the fargate service without ALB. What is strange is that the connectivity depends on the client. If I test with wscat, I can connect to the fargate service with ALB. However, if I use other client (for example, minecraft), I cannot connect to it. Of course, I can connect with minecraft to the fargate service without ALB. What is wrong with the ALB?

  • Maybe there is something not standard with the minecraft websocket implementation?

  • But the only difference is ALB. Why ALB does not behave the same as the direct connection? The implementation of the websocket application must take care of the difference?

  • Anyone has any ideas?

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则