-
Notifications
You must be signed in to change notification settings - Fork 80
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
Update thrift to v0.21.0 #663
Conversation
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.
LGTM. Go changes seem fairly limited.
3ba6f2d
to
6e18069
Compare
Also rerun thrift compiler v0.21.0 on baseplate.thrift. Also add thriftbp.ClientPoolConfig.UseZlib, which was not possible before.
6e18069
to
1ea06f5
Compare
@@ -228,6 +228,12 @@ type ClientPoolConfig struct { | |||
// | |||
// Optional. If empty, no "thrift-hostname" header will be sent. | |||
ThriftHostnameHeader string `yaml:"thriftHostnameHeader"` | |||
|
|||
// Uses zlib transform in thrift THeader connections between client and |
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.
is THeader just for headers, or for the whole connection? UseZlib
sounds like this is for the whole connection, but the docs make it sound like it's just for headers...
so maybe
- rename to
UseZlibForHeaders
, or - update the comment to specify that this is for the whole connection
?
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.
THeader
is a thrift TProtocol/TTransport (it's just the only TProtocol/TTransport that supports headers, thus the name)
so it's for the whole connection.
Also rerun thrift compiler v0.21.0 on baseplate.thrift.
Also add thriftbp.ClientPoolConfig.UseZlib, which was not possible before.