-
Notifications
You must be signed in to change notification settings - Fork 658
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
grpc-js: Close http2 sessions that are dropped by their subchannels #1088
grpc-js: Close http2 sessions that are dropped by their subchannels #1088
Conversation
@murgatroid99 : Any estimate for when this will be released? We have severly degraded performance after upgrading to 0.6.9 and I want to know if this fixes it. Also, what is the recommended version to run at this point in time? The last version that looks stable so far is 0.5.4, but I haven't tried every version in-between yet. |
I was going to bundle this change with a feature release because I did not consider it high priority. This bug should have only a very minor impact for regular usage of the library. Version 0.6.9 is currently the recommended version; if you have a problem with it I suggest filing an issue. |
@murgatroid99 I'm running this on a host that does a large number of outbound http connections - with 0.6.9 a large portion of those requests start timing out, and I would like to see if it's related to these danlging sessions. |
I think it's very unlikely to be related. Your problem sounds similar to one reported on earlier 0.6.x versions that according to all other reports was fixed in 0.6.9 (#1064, googleapis/nodejs-pubsub#770). Can you verify that every instance of |
@murgatroid99 Verified. I suspect that this is a duplicate of #1085. It manifests as outgoing HTTP connections failing (these connections don't involve Where can I submit logs? |
@murgatroid99 I think I have a satisfactory explanation; Since we have a global http agent configured with EDIT: As the maxSockets is per origin, this does not fully explain it after all (it does explain failing requests to PubSub, though). Grasping at straws here, but maybe it can have to do with the For reference, we're using https://www.npmjs.com/package/agentkeepalive with the following settings:
|
OK, I see now how these might be connected. I'll publish a new version of grpc-js soon. |
Version 0.6.10 is out now |
This should fix the connection leak described in #1085.