cdjingit commented on code in PR #2102:
URL: https://github.com/apache/brpc/pull/2102#discussion_r1092730512
##########
src/brpc/server.cpp:
##########
@@ -642,6 +642,33 @@ int Server::InitializeOnce() {
return 0;
}
+int Server::InitALPNOptions(ServerSSLOptions* options) {
+ if (options == nullptr) {
+ LOG(ERROR) << "Fail to init alpn options, ssl options is nullptr.";
+ return -1;
+ }
+
+ const std::string& alpns = options->alpns;
+ butil::StringSplitter split(alpns.data(), alpns.data() + alpns.size(),
',');
+
+ std::string row_protocol;
+ for (; split; split++) {
Review Comment:
```
for (butil::StringSplitter split(alpns.data(), ','); split; ++split) {
}
--
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]