brpc icon indicating copy to clipboard operation
brpc copied to clipboard

通过grpc协议访问时,如果鉴权失败,客户端会一直卡住直到超时

Open Paragrf opened this issue 6 months ago • 0 comments

Describe the bug 服务端开启鉴权后,如果客户端通过grpc协议鉴权失败,返回体是HTTP1.0格式的,客户端无法解析,导致客户端一直夯死,无法解析出正确的错误码。

To Reproduce brpc服务端加入 options.auth=&auth后,直接通过postman的grpc接口访问即可复现

Image

Expected behavior 期望客户端在服务端返回鉴权失败时能正常解析鉴权失败的错误码,而不是一直处于夯死状态直到超时

Versions 1.12.0

Additional context/screenshots

Paragrf avatar Jun 19 '25 07:06 Paragrf