indutny / sticky-session

Sticky session balancer based on a `cluster` module
964 stars 99 forks source link

Error: read ECONNRESET #40

Closed zlokomatic closed 8 years ago

zlokomatic commented 8 years ago

Hi,

after some time and > 10000 connections i am seeing many errors with:

Error: read ECONNRESET at errnoException (net.js:904:11) at TCP.onread (net.js:558:19)

After that no new connections are accepted.

I found a nodejs issue https://github.com/nodejs/node-v0.x-archive/issues/7566 but i am not sure this is the problem and i dont know how to fix this maybe you can help?

zlokomatic commented 8 years ago

The problem was caused by a wrong haproxy configuration. Actually we just needed mode http and keep-alive enabled