#3689, #3690: Don't immediately close HAProxy health check

This commit is contained in:
Outfluencer 2024-06-13 13:07:08 +02:00 committed by GitHub
parent 07df657f3c
commit 006a14a75c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,6 +30,7 @@ public class HandlerBoss extends ChannelInboundHandlerAdapter
private ChannelWrapper channel;
private PacketHandler handler;
private boolean healthCheck;
public void setHandler(PacketHandler handler)
{
@ -96,7 +97,7 @@ public class HandlerBoss extends ChannelInboundHandlerAdapter
channel.setRemoteAddress( newAddress );
} else
{
channel.close();
healthCheck = true;
}
} finally
{
@ -146,7 +147,7 @@ public class HandlerBoss extends ChannelInboundHandlerAdapter
{
if ( ctx.channel().isActive() )
{
boolean logExceptions = !( handler instanceof PingHandler );
boolean logExceptions = !( handler instanceof PingHandler ) && !healthCheck;
if ( logExceptions )
{