chronoxor / NetCoreServer

Ultra fast and low latency asynchronous socket server & client C# .NET Core library with support TCP, SSL, UDP, HTTP, HTTPS, WebSocket protocols and 10K connections problem solution

Home Page:https://chronoxor.github.io/NetCoreServer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OnDisconnected without OnConnected?

jkuek opened this issue · comments

commented

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 Which version are you using?

@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