liujianhua2016 opened a new issue, #1911:
URL: https://github.com/apache/incubator-brpc/issues/1911
**Describe the bug (描述bug)**
在butil/endpoint.cpp文件 hostname2endpoint函数中,对域名进行提取时,如果域名长度是恰好是63个字符时,
函数会进入这个if判断
if (i == sizeof(buf) - 1) {
return -1;
}
导致函数提前退出返回错误
**To Reproduce (复现方法)**
使用baidu_std协议通过域名方式访问server节点,如果域名长度恰好是63个字符时,会导致channel无法init成功
**Expected behavior (期望行为)**
域名长度不超过63,channel可以init成功
**Versions (各种版本)**
OS: centos7.6
Compiler: gcc-4.8.5
brpc: master
protobuf: baidu_std
**Additional context/screenshots (更多上下文/截图)**
--
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]