NetCoreServer icon indicating copy to clipboard operation
NetCoreServer copied to clipboard

OnDisconnected without OnConnected?

Open jkuek opened this issue 2 years ago • 2 comments

My app (using NetCoreServer) is running on an EC2 instance behind a network load balancer (across 3 availability zones).

I'm seeing regular TcpSession.OnDisconnected() and TcpServer.OnDisconnected() events without the corresponding OnConnected() events, and have confirmed these events are triggered by the health checks on my target group.

Why is this happening? I expected an OnConnected() to always precede OnDisconnected().

jkuek avatar Sep 18 '23 05:09 jkuek

@jkuek Which version are you using?

TailyFair avatar Feb 20 '24 08:02 TailyFair

@TailyFair I've just updated to 8.0.7 and can confirm the issue still occurs.

When my normal clients are connecting, everything works as expected. However, the health check connections only generate the OnDisconnecting/OnDisconnected events (no OnConnected event). I'm guessing this is because the connections are likely super short in duration.

image

jkuek avatar Mar 04 '24 02:03 jkuek