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

connect to backend server err would cause many goroutines been stuck at client.go#L104 #2

Closed
sangechen opened this issue Feb 16, 2021 · 1 comment

Comments

@sangechen
Copy link

sangechen commented Feb 16, 2021

we integrate client.go into our api-gateway.
when our backend gRPC server become unavailable,
our api-gateway process's cpu&memory&goroutines all goes up.

the problem is that client.go uses grpc.Dial() with grpc.WithBlock(),
so when server goes down, every call to grpcpool.getConn() will take 3-second to finish,
causing more and more goroutines got stuck at client.go#L104

@rfyiamcool
Copy link
Owner

thank u

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