Skip to content

慎用 getRemoteHost !!! #576

@HuihuYan

Description

@HuihuYan

public boolean onIntercept(@NonNull HttpRequest request, @NonNull HttpResponse response, @NonNull RequestHandler handler) { request.getRemoteHost(); }
如果Android设备(虚拟机/主板)启动前无网络的情况下,http请求过来被拦截,进入 onIntercept,获取remoteHost 会一直阻塞,直至超时(超时很久,不确定默认是多久),获取remoteAddr 则不会,大家闭坑。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions