Dedian  
          -- 關(guān)注搜索引擎的開發(fā)
          日歷
          <2006年9月>
          272829303112
          3456789
          10111213141516
          17181920212223
          24252627282930
          1234567
          統(tǒng)計
          • 隨筆 - 82
          • 文章 - 2
          • 評論 - 228
          • 引用 - 0

          導(dǎo)航

          常用鏈接

          留言簿(8)

          隨筆分類(45)

          隨筆檔案(82)

          文章檔案(2)

          Java Spaces

          搜索

          •  

          積分與排名

          • 積分 - 65598
          • 排名 - 816

          最新評論

          閱讀排行榜

          評論排行榜

           
          When I try to get some information of http connection to some websites (say http://linuxbyte.net) by function HttpURLConnection.getResponseCode(), it seems tthat JVM hangs for quite a while. Somebody says that is maybe the problem of http server who must be a Microsoft webserver. Here and here are the bug report information for Java 1.3 or before. Though it is said that the problem has been solved after java 1.4, i still get undesirable a long time waiting before a SocketException (Connection reset) is thrown out. Btw, conn.setConnectTimeout or conn.setConnectTimeout is involved for this problem. I am not sure if there is any method that can save time to skip those bad links.
          posted on 2006-09-21 06:32 Dedian 閱讀(1141) 評論(0)  編輯  收藏 所屬分類: Java Memo
           
          Copyright © Dedian Powered by: 博客園 模板提供:滬江博客
          主站蜘蛛池模板: 慈溪市| 犍为县| 新密市| 沁源县| 辉县市| 鹿泉市| 通化市| 鄂托克前旗| 兴城市| 上蔡县| 湖州市| 包头市| 宾阳县| 正定县| 宁陵县| 古浪县| 舒兰市| 嵊州市| 太仓市| 白山市| 安义县| 内黄县| 湛江市| 武山县| 凤城市| 白城市| 平定县| 高尔夫| 景宁| 临沧市| 新乡市| 禹城市| 河津市| 会泽县| 连江县| 阿图什市| 息烽县| 云浮市| 山西省| 得荣县| 吴旗县|