Haproxy + netty: Way to prevent exceptions on connection reset?

前端 未结 5 764
庸人自扰
庸人自扰 2021-02-06 14:06

We\'re using haproxy in front of a netty-3.6-run backend. We are handling a huge number of connections, some of which can be longstanding.

Now the problem is that when h

5条回答
  •  耶瑟儿~
    2021-02-06 14:43

    'Connecton reset by peer' is usually caused by writing to a connection that had already been closed by the other end. That causes the peer to send an RST. But it almost certainly had already sent a FIN. I would re-examine your assumptions here. Very few applications deliberately send RSTs. What you are most probably encountering is an application protocol error. If that's unavoidable,so is the ECONNRESET.

提交回复
热议问题