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

          導航

          常用鏈接

          留言簿(8)

          隨筆分類(45)

          隨筆檔案(82)

          文章檔案(2)

          Java Spaces

          搜索

          •  

          積分與排名

          • 積分 - 66090
          • 排名 - 813

          最新評論

          閱讀排行榜

          評論排行榜

           
          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 閱讀(1147) 評論(0)  編輯  收藏 所屬分類: Java Memo
           
          Copyright © Dedian Powered by: 博客園 模板提供:滬江博客
          主站蜘蛛池模板: 吴旗县| 睢宁县| 厦门市| 兴业县| 遵化市| 曲麻莱县| 凯里市| 化德县| 抚远县| 威海市| 甘孜县| 墨竹工卡县| 乐陵市| 浦北县| 原阳县| 漯河市| 阿尔山市| 逊克县| 班玛县| 迭部县| 新田县| 平武县| 萝北县| 仪征市| 黄骅市| 旺苍县| 涿州市| 武宣县| 吉林省| 南岸区| 兰坪| 庐江县| 德昌县| 通辽市| 西平县| 宣恩县| 苍梧县| 禄丰县| 马龙县| 荔浦县| 渝北区|