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

Shutdown 0 not waiting for active connection to complete #1

Open
ngoyal16 opened this issue Nov 10, 2022 · 1 comment
Open

Shutdown 0 not waiting for active connection to complete #1

ngoyal16 opened this issue Nov 10, 2022 · 1 comment

Comments

@ngoyal16
Copy link

We are trying to shutdown server with 0 and wait active connection to be terminate.

but as soon as Shutdown function get called the server is get terminated.

we should increment connWaitGroup using .Add(1) and once the connection terminate we should use .Done() function so that the connWaitGroup.wait() funciton wil be wait until the active connection(s) is closed.

@ngoyal16
Copy link
Author

@maurice2k #2

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

1 participant