Skip to content

建议创建socket时加上连接超时时间 #1

@keepinmind9

Description

@keepinmind9

Link 类中
sock = new Socket(host, port);
......
-->
sock = new Socket();
......
sock.connect(new InetSocketAddress(host, port), connect_timeout);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions