<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Tao

    Tao obeys its own inherent Nature

    2009年7月15日

    搬到了: http://theantway.com
    posted @ 2011-11-08 13:43 wade 閱讀(208) | 評(píng)論 (0)編輯 收藏
    Ubuntu 11.04
    libxml2-2.7.8

    網(wǎng)上找了一些辦法都不能用,最后直接打開(kāi)configure 文件,找到$RM "$cfgfile", 替換為 $RM -f "$cfgfile", 說(shuō)白了就是出錯(cuò)了也不要停,繼續(xù)執(zhí)行。再運(yùn)行configure, 成功
    posted @ 2011-06-02 10:15 wade 閱讀(1322) | 評(píng)論 (0)編輯 收藏

    When I try to use URLConnection to check if a url is accessible using the following code:

    try {
        URL url = new URL("http://169.254.169.254/latest");
    
        URLConnection connection = url.openConnection();
        connection.setConnectTimeout(5000);
        connection.connect();
        System.out.println("Connected successfully using url");
    } catch (IOException e) {
            e.printStackTrace();
    }
    

    I expected the behavior is: connect should be success if the host is reachable, else throw exception. It works fine without the anti-virus application, but always print “connected successfully” even the host is not reachable.

    Then I tried to use Socket to connect:

    Socket socket = new Socket();
    socket.connect(new InetSocketAddress("169.254.169.254", 80));
    if (socket.isConnected()) {
        System.out.println("Connected successfully using socket");
    } else {
        System.out.println("Connected failed using socket");
    }
    
    

    But Still got the same problem.

    The solution for it:

    Disable http check in anti-virus, for example, in ESET NOD32, the settings is Web access protection -> Http, Https -> Http scanner

    ESET_http_connection_always_success

    posted @ 2009-07-15 13:30 wade 閱讀(464) | 評(píng)論 (0)編輯 收藏

    導(dǎo)航

    <2009年7月>
    2829301234
    567891011
    12131415161718
    19202122232425
    2627282930311
    2345678

    統(tǒng)計(jì)

    常用鏈接

    留言簿(7)

    隨筆分類

    隨筆檔案

    相冊(cè)

    Photo

    搜索

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    主站蜘蛛池模板: 亚洲中文无码永久免费| 国产成人综合亚洲绿色| 亚洲人成色在线观看| 区三区激情福利综合中文字幕在线一区亚洲视频1 | 亚洲高清有码中文字| 日韩免费无码一区二区三区| 午夜网站在线观看免费完整高清观看| 亚洲成网777777国产精品| 女人18特级一级毛片免费视频| 久久亚洲AV无码精品色午夜| 国产三级在线免费| 亚洲成AV人片在线观看WWW| 亚洲乱人伦精品图片| 最刺激黄a大片免费网站| 免费A级毛片无码A| 亚洲av永久无码精品秋霞电影秋| 无人在线观看免费高清视频| 国产精品高清视亚洲一区二区 | 亚洲精品国产第1页| 黄页免费在线观看| 亚洲va中文字幕无码久久不卡| 久久国产免费一区| 亚洲性猛交xx乱| 国产成人一区二区三区免费视频 | 中文亚洲AV片在线观看不卡| 最新久久免费视频| 亚洲综合成人网在线观看| 亚洲视频在线观看2018| 亚洲天堂在线视频| 人人揉揉香蕉大免费不卡| 国产精品无码一区二区三区免费 | 亚洲精品无码中文久久字幕| 91免费人成网站在线观看18| 亚洲一区二区三区免费视频 | 亚洲女人18毛片水真多| 国产无遮挡吃胸膜奶免费看| 日韩电影免费观看| 精品久久久久久亚洲中文字幕| 亚洲av最新在线网址| 青青青国产免费一夜七次郎| 国产在线观看无码免费视频|