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

          導航

          常用鏈接

          留言簿(8)

          隨筆分類(45)

          隨筆檔案(82)

          文章檔案(2)

          Java Spaces

          搜索

          •  

          積分與排名

          • 積分 - 66091
          • 排名 - 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: 博客園 模板提供:滬江博客
          主站蜘蛛池模板: 五莲县| 天水市| 泸州市| 温宿县| 策勒县| 广汉市| 黑龙江省| 遂昌县| 蒙山县| 清徐县| 仁化县| 灵台县| 巍山| 丰镇市| 郁南县| 桂东县| 雅安市| 义马市| 夏邑县| 平乐县| 栾川县| 泰和县| 神池县| 巴马| 乌拉特前旗| 锡林郭勒盟| 鹤峰县| 海阳市| 玛曲县| 涟源市| 桃源县| 襄汾县| 赤水市| 陈巴尔虎旗| 沛县| 密云县| 交城县| 砀山县| 安塞县| 车险| 孝义市|