brpc icon indicating copy to clipboard operation
brpc copied to clipboard

v1.8 配置参数

Open haoxiaokun opened this issue 1 year ago • 1 comments

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

haoxiaokun avatar Apr 26 '24 02:04 haoxiaokun

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

应该是COMPRESS_TYPE_ZLIB吧。 https://github.com/apache/brpc/blob/68aff6947c10d92bf44aa585b1913deb91cf8f92/src/brpc/options.proto#L69-L75

[max_body_size]怎么设置

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

chenBright avatar Apr 26 '24 08:04 chenBright