You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2022/08/29 03:15:48 UTC
[GitHub] [incubator-brpc] liujianhua2016 opened a new issue, #1911: hostname2endpoint函数对域名提取可能不正确
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: dev-unsubscribe@brpc.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
Re: [I] hostname2endpoint函数对域名提取可能不正确 (brpc)
Posted by "chenBright (via GitHub)" <gi...@apache.org>.
chenBright commented on issue #1911:
URL: https://github.com/apache/brpc/issues/1911#issuecomment-1702118107
fixed by #2179
--
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: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
[GitHub] [incubator-brpc] lorinlee commented on issue #1911: hostname2endpoint函数对域名提取可能不正确
Posted by GitBox <gi...@apache.org>.
lorinlee commented on issue #1911:
URL: https://github.com/apache/incubator-brpc/issues/1911#issuecomment-1230328845
@liujianhua2016 可以试下把buf的长度改大点,改成128试试呢?可以提个patch哈
--
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: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
[GitHub] [incubator-brpc] liujianhua2016 commented on issue #1911: hostname2endpoint函数对域名提取可能不正确
Posted by GitBox <gi...@apache.org>.
liujianhua2016 commented on issue #1911:
URL: https://github.com/apache/incubator-brpc/issues/1911#issuecomment-1231382384
好的, 我稍后提个patch试试
--
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: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
Re: [I] hostname2endpoint函数对域名提取可能不正确 (brpc)
Posted by "chenBright (via GitHub)" <gi...@apache.org>.
chenBright closed issue #1911: hostname2endpoint函数对域名提取可能不正确
URL: https://github.com/apache/brpc/issues/1911
--
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: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org