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

v1.8 配置参数 #2615

Open
haoxiaokun opened this issue Apr 26, 2024 · 1 comment
Open

v1.8 配置参数 #2615

haoxiaokun opened this issue Apr 26, 2024 · 1 comment

Comments

@haoxiaokun
Copy link

请问文档是不是跟1.8不匹配,如何使用set_response_compress_type,参数set_response_compress_type(brpc::CompressTypeZlib);编译不过去,还有[max_body_size]怎么设置,brpc::ServerOptions options;没有此参数。有交流群吗

@chenBright
Copy link
Contributor

如何使用set_response_compress_type,参数set_response_compress_type(brpc::CompressTypeZlib);编译不过去

应该是COMPRESS_TYPE_ZLIB吧。

enum CompressType {
COMPRESS_TYPE_NONE = 0;
COMPRESS_TYPE_SNAPPY = 1;
COMPRESS_TYPE_GZIP = 2;
COMPRESS_TYPE_ZLIB = 3;
COMPRESS_TYPE_LZ4 = 4;
}

[max_body_size]怎么设置

max_body_size应该是gflag,通过./bin --max_body_size=10000设置。

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