Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brpc http client head请求问题 #764

Closed
xinxinsh opened this issue May 13, 2019 · 2 comments · Fixed by #2366
Closed

brpc http client head请求问题 #764

xinxinsh opened this issue May 13, 2019 · 2 comments · Fixed by #2366
Labels
bug the code does not work as expected

Comments

@xinxinsh
Copy link

xinxinsh commented May 13, 2019

Describe the bug (描述bug)
利用brpc http client构建head请求,出现url链接不上Error [E1008]Reached timeout=30000ms , 同样的url构建get是可以成功的,我用curl去构建head请求是可以的, 这个由于brpc构建head请求时, 如果返回的header的content-length不为0,在解析http响应时需要等待body读取,实际上head请求时不会返回body

To Reproduce (复现方法)
brpc http client构建head请求去访问, head请求返回时header包含content-length的返回, 但是content-length不为0

Expected behavior (期望行为)
brpc http client能处理head请求,对于head请求在处理http的返回时,即使响应的header里面的content-length不为0,也需要跳过响应的body的解析

Versions (各种版本)
OS: MacOs
Compiler:
brpc:
protobuf:

Additional context/screenshots (更多上下文/截图)

@lilithliu1
Copy link

这个问题有计划修复么

@shanghx
Copy link

shanghx commented Mar 3, 2021

这个修复后考虑合入master嘛?

@wwbmmm wwbmmm added the feature new feature label Apr 19, 2023
@chenBright chenBright added bug the code does not work as expected and removed feature new feature labels Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug the code does not work as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants