<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)論排行榜

    主站蜘蛛池模板: 亚洲色婷婷综合开心网| 最新欧洲大片免费在线| 亚洲色中文字幕在线播放| 亚洲日韩中文在线精品第一| av无码国产在线看免费网站| 黄网站免费在线观看| 深夜A级毛片视频免费| 亚洲中文字幕无码mv| 色噜噜亚洲男人的天堂| 亚洲久悠悠色悠在线播放| 亚洲影视一区二区| 亚洲精品天堂在线观看| 亚洲AV无码资源在线观看| 18禁亚洲深夜福利人口| 亚洲av午夜国产精品无码中文字| 亚洲综合久久精品无码色欲| 亚洲人成人网站18禁| 国产精品亚洲专区一区| 一级全免费视频播放| 中文字幕手机在线免费看电影| 久久国产精品免费一区| 国产午夜精品免费一区二区三区 | 99久久99这里只有免费费精品| 18禁超污无遮挡无码免费网站国产 | 亚洲天堂电影在线观看| 国产成人精品亚洲| 在线观看片免费人成视频播放| 国产免费不卡视频| 亚洲男人在线无码视频| 亚洲AV区无码字幕中文色| 亚洲国产日产无码精品| 有码人妻在线免费看片| 久艹视频在线免费观看| 成人免费网站在线观看| 亚洲一区二区三区夜色| 美女视频黄频a免费观看| 91青青国产在线观看免费| 免费一级国产生活片| 亚洲第一页在线播放| 久草免费福利在线| 日韩免费视频观看|