private static boolean isHostConnector(final String host, final int port, final int timeout) {
        try (Socket socket = new Socket()) {
            socket.connect(new InetSocketAddress(host, port), timeout);
        } catch (Exception e) {
            LOG.error("socket connect is error. host:{} port:{} timeout:{}", host, port, timeout, e);
            return false;
        }
        return true;
    }
Check url boolean.

@param url     the url
@param timeout timeout
@return the boolean
shenyu-e2e/shenyu-e2e-engine/src/main/java/org/apache/shenyu/e2e/engine/utils/SocketUtils.java