Connection reset error

Hi,
I am having a configuration of HAProxy with Patroni and Postgres. HAProxy reading status of Postgres via Patroni listen port. Eventhough I am able to connect to DB through ports defined in HAProxy , I am getting a reset error in Patroni log like log below.

ConnectionResetError: [Errno 104] Connection reset by peer

Any input will be helpful. thanks.