Skip to content

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

Description

@Paragrf

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

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

Image

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

Versions
1.12.0

Additional context/screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions