Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

I had a similar issue with NodeJS (express) and Application Load Balancer (AWS). The issue was in the keep-alive timeout configuration, the NodeJS application default timeout was set to a shorter period than the timeout configured on the load balancer which resulted in the server dropping the connection in the middle of a request (made from the load balancer).

A simple fix was setting the server.keepAliveTimeout to a higher number than configured on the load balancer.

The default keep alive for nginx is 75 sec; The default keep alive for NodeJS is 5 sec.

...