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

          導航

          常用鏈接

          留言簿(8)

          隨筆分類(45)

          隨筆檔案(82)

          文章檔案(2)

          Java Spaces

          搜索

          •  

          積分與排名

          • 積分 - 65633
          • 排名 - 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 閱讀(1142) 評論(0)  編輯  收藏 所屬分類: Java Memo
           
          Copyright © Dedian Powered by: 博客園 模板提供:滬江博客
          主站蜘蛛池模板: 兰西县| 镇坪县| 黔西| 金沙县| 桃园市| 枣强县| 襄垣县| 读书| 邢台市| 济源市| 宜昌市| 原阳县| 临海市| 葫芦岛市| 体育| 资阳市| 敦化市| 温泉县| 河南省| 宁城县| 桂东县| 阳曲县| 凤阳县| 黑水县| 星座| 石家庄市| 九龙坡区| 于田县| 凉城县| 宜春市| 民权县| 大理市| 邵东县| 竹山县| 县级市| 滦平县| 博乐市| 镇远县| 浏阳市| 大港区| 安国市|