Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnDisconnected without OnConnected? #272

Open
jkuek opened this issue Sep 18, 2023 · 2 comments
Open

OnDisconnected without OnConnected? #272

jkuek opened this issue Sep 18, 2023 · 2 comments

Comments

@jkuek
Copy link

jkuek commented Sep 18, 2023

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().

@TailyFair
Copy link

@jkuek Which version are you using?

@jkuek
Copy link
Author

jkuek commented Mar 4, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants