Skip to content

Optimal Idle timeout value in AWS ALB for a socket.io server #4076

Answered by awesomelike
awesomelike asked this question in Q&A
Discussion options

You must be logged in to vote

Later I figured out that this question is not valid. Because socket.io has a configurable option pingInterval and with this you can tweak the interval in such a way that it should be less than the idle timeout in your ALB. For example, if the idle timeout is 60 seconds, you can set the pingInterval to some value less than 60 seconds, i.e 45 seconds. Then you will never get the errors mentioned above.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by awesomelike
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant