-
Notifications
You must be signed in to change notification settings - Fork 4
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
Allow setting number of worker threads and other HTTP/2 setting params #178
Conversation
0bf6035
to
38434ba
Compare
We now support setting the `SETTINGS_INITIAL_WINDOW_SIZE` and `SETTINGS_MAX_CONCURRENT_STREAMS` settings via `http2`. We also support setting the initial connection window size, and the number of server worker threads. The default values we set for these help us avoid the window size exhaustion deadlock that resulted in [#168](#168).
38434ba
to
82dc724
Compare
3ad1d4f
to
59a8650
Compare
@@ -41,7 +41,7 @@ data GrpcError = | |||
-- | Invalid argument | |||
-- | |||
-- The client specified an invalid argument. Note that this differs from | |||
-- 'GrpcFailedPrecondition': 'GrpcInvalidArgumen'` indicates arguments that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hah, wow, thanks for catching these!
This just changes code layout, nothing else.
Thanks for the update. I've pushed two more commits, one that avoids hardcoding the default of 8 into grapesy by doing
instead of having hte figure 8 there (and similarly in other places), and one commit to fix some code layout (long lines). |
Although with kazu-yamamoto/http2#130 that "number of workers" might not be relevant at all anymore? I'll verify. |
We now support setting the
SETTINGS_INITIAL_WINDOW_SIZE
andSETTINGS_MAX_CONCURRENT_STREAMS
settings viahttp2
. We also support setting the initial connection window size, and the number of server worker threads.The default values we set for these help us avoid the window size exhaustion deadlock that resulted in
#168.
Resolves #145