wwbmmm commented on code in PR #2102:
URL: https://github.com/apache/brpc/pull/2102#discussion_r1266102272
##########
docs/cn/server.md:
##########
@@ -35,18 +35,18 @@ protoc运行后会生成echo.pb.cc和echo.pb.h文件,你得include echo.pb.h
...
class MyEchoService : public EchoService {
public:
- void Echo(::google::protobuf::RpcController* cntl_base,
- const ::example::EchoRequest* request,
- ::example::EchoResponse* response,
- ::google::protobuf::Closure* done) {
+ void Echo(::google::protobuf::RpcController* cntl_base,
Review Comment:
无关的改动,有点多
##########
docs/cn/server.md:
##########
@@ -35,18 +35,18 @@ protoc运行后会生成echo.pb.cc和echo.pb.h文件,你得include echo.pb.h
...
class MyEchoService : public EchoService {
public:
- void Echo(::google::protobuf::RpcController* cntl_base,
- const ::example::EchoRequest* request,
- ::example::EchoResponse* response,
- ::google::protobuf::Closure* done) {
+ void Echo(::google::protobuf::RpcController* cntl_base,
Review Comment:
无关的改动,有点多
##########
docs/cn/server.md:
##########
@@ -534,6 +534,13 @@ struct ServerSSLOptions {
-
其余选项还包括:密钥套件选择(推荐密钥ECDHE-RSA-AES256-GCM-SHA384,chrome默认第一优先密钥,安全性很高,但比较耗性能)、session复用等。
+-
如果想支持应用层协议协商,可通过`alpns`选项设置Server端支持的协议字符串,在Server启动时会校验协议的有效性,多个协议间使用逗号分割。具体使用方式如下:
+
+ ```c++
+ ServerSSLOptions ssl_options;
+ ssl_options->alpns = "http, h2, baidu_std";
Review Comment:
应该是ssl_options.alpns吧?
##########
docs/cn/server.md:
##########
@@ -534,6 +534,13 @@ struct ServerSSLOptions {
-
其余选项还包括:密钥套件选择(推荐密钥ECDHE-RSA-AES256-GCM-SHA384,chrome默认第一优先密钥,安全性很高,但比较耗性能)、session复用等。
+-
如果想支持应用层协议协商,可通过`alpns`选项设置Server端支持的协议字符串,在Server启动时会校验协议的有效性,多个协议间使用逗号分割。具体使用方式如下:
+
+ ```c++
+ ServerSSLOptions ssl_options;
+ ssl_options->alpns = "http, h2, baidu_std";
Review Comment:
应该是ssl_options.alpns吧?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]