@Eddiie wrote:
Hello,
I am using HAProxy to load balance a .NET / Net.TCP application.
The application works but if there is an idle of 1 minute or more, an exception is created by the caller -This channel can no longer be used to send messages as the output session was auto-closed due to a server-initiated shutdown. Either disable auto-close by setting the DispatchRuntime.AutomaticInputSessionShutdown to false, or consider modifying the shutdown protocol with the remote server.
If we remove HAProxy from the middle, wait a minute or more between requests, this message never appears.
What is going on here? More importantly how can I stop this from happening?
It seems like the client (HAProxy in this case) is initiating the close.
frontend lt_dotnet_7078_frontend bind *:7078 mode tcp option clitcpka default_backend lt_dotnet_backend backend lt_dotnet_backend timeout connect 5000 option tcp-check option tcplog option srvtcpka mode tcp balance roundrobin server server02_10.11.20.32_7078 10.11.20.32:7078 check port 7078 inter 200
Help is appreciated.
Posts: 1
Participants: 1