<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    MDA/MDD/TDD/DDD/DDDDDDD
    posts - 536, comments - 111, trackbacks - 0, articles - 0
      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理
    ? extremetable導出excel,彈出一個下載窗口,這時不點下載而點取消,則報下面的異常:
    ClientAbortException?
    Caused by: java.net.SocketException: Connection reset by peer: socket write error

    查了下TOMCAT的文檔,解釋如下:
    Wrap an IOException identifying it as being caused by an abort of a request by a remote client.
    在BAIDU和GOOGLE上找了下原因,大概歸結為:
    ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error的原因是由于處理http連接時,正在輸出內容時,用戶關閉了IE,會出現一個"ClientAbortException",屬于I/O處理中出現的一個異常,應用服務器應該會捕捉。
    Connection reset by peer的原因:
    經常出現的Connection reset by peer: 原因可能是多方面的,不過更常見的原因是:
    ①:服務器的并發連接數超過了其承載量,服務器會將其中一些連接Down掉;
    ②:客戶關掉了瀏覽器,而服務器還在給客戶端發送數據;
    ③:瀏覽器端按了Stop
    很多人都說是客戶端造成的,沒有辦法控制,是個比較郁悶的問題。

    但是,我擔心的是:雖然前臺沒有任何出錯的跡象,但是后臺會記錄這個異常,日志也會瘋狂爆滿,時間長了,肯定會DOWN掉的,還沒找到好的解決辦法
    resin有一個參數ignore-client-disconnect
    tomcat似乎沒有


    經常出現的Connection reset by peer: 原因可能是多方面的,不過更常見的原因是:①:服務器的并發連接數超過了其承載量,服務器會將其中一些連接Down掉;②:客戶關掉了瀏覽器,而服務器還 在給客戶端發送數據;③:瀏覽器端按了Stop

    [10054] Connection reset by peer
      Connection reset by peer is a tough one because it can be caused by so many things. In all cases, the server determines that the socket is no longer good and closes it from its side.
      Read Error
      Scenario: Mary couldn't make out what Joe was saying anymore, so she hung up rather than lose his messages (data).
      A read error occurs when a server cannot successfully read from a user's client. Servers gather information from the client by text, setup, and other items.When the server receives an error when reading from a client, it then disconnects the user, resulting in a read error quit message.
      Write Error
      Scenario: Mary was trying to talk to Joe but didn't think she was getting through, so she hung rather than lose his messages (data).
      A write error occurs when a server cannot successfully write to a user's client. When the server receives information, it usually responds with information of its own. When the server receives an error when writing to a client, it then disconnects the user, resulting in a write error quit message similar to the read error format.
      Ping Timeout Error
      Scenario: Mary, having been raised in a household with too many kids and always craving attention, keeps asking to make sure that Joe is still on the line and listening. If he doesn't reply fast enough to suit her, she hangs up.
       Servers automatically ping users at a preset time. The reason for this is to ensure the client is still connected to the server. When you see "PING? PONG!" results in your status window, it means the server has pinged your client, and it has responded back with a pong to ensure the server that you are still connected. When this does not happen and you disconnect without the server's knowledge, the server will automatically disconnect the user when it does not receive a response, resulting in a ping timeout. Ping timeouts occur to EVERYONE.
      Broken pipe Error
       Scenario: Mary had picked up a sticky note with a message she needed to relay to Joe, but somehow between her hand and her mouth, the message got misplaced. Mary was trying to talk to Joe but didn't think she was getting through, so she hung up rather than lose his messages (data).
       A broken pipe error occurs when the server knows it has a message but can't seem to use its internal data link to get the data out to the socket.
      Miscellaneous
      Scenario: Lots of other reasons; perhaps the operator broke in and gave Mary a message that made her doubt the validity of the call so she hung up


    評論

    # re: ClientAbortException,Connection reset by peer: socket write error (摘自javaeye)  回復  更多評論   

    2007-09-21 19:31 by 345
    我碰到的情況是用js跳就包錯
    直接寫就好了

    # re: ClientAbortException,Connection reset by peer: socket write error (摘自javaeye)  回復  更多評論   

    2007-11-17 17:32 by aaaaaaaaa
    我今天下午也遇到了這樣一個問題
    頭痛我了我一個下午該怎么解決呢

    # re: ClientAbortException,Connection reset by peer: socket write error (摘自javaeye)  回復  更多評論   

    2008-12-01 15:19 by
    我也碰到這個問題了,不知道怎么解決。

    # re: ClientAbortException,Connection reset by peer: socket write error (摘自javaeye)  回復  更多評論   

    2009-10-16 14:47 by shanfeng1
    我也有相關問題,間歇性報錯

    # re: ClientAbortException,Connection reset by peer: socket write error (摘自javaeye)  回復  更多評論   

    2012-02-22 10:51 by 竹蘭情結
    我也碰到了這個問題,發現這個與瀏覽器有關系,360報錯,IE,火狐不會報錯!
    主站蜘蛛池模板: 久久久久久久岛国免费播放| 色偷偷亚洲男人天堂| 国产一级一毛免费黄片| 国产亚洲精品a在线观看| 黄网站色视频免费观看45分钟| 国产免费av片在线无码免费看 | 亚洲国产婷婷综合在线精品| 蜜桃传媒一区二区亚洲AV| 日本成人免费在线| 粉色视频在线观看www免费| 免费a级毛片大学生免费观看 | 国产精品亚洲A∨天堂不卡| 日本人成在线视频免费播放| 亚洲欧洲第一a在线观看| 麻豆高清免费国产一区| 2019亚洲午夜无码天堂| 日韩高清免费观看| 一级毛片成人免费看a| 亚洲国产精品成人久久| 亚洲视频免费播放| 亚洲国产精品无码第一区二区三区 | 69式国产真人免费视频| 亚洲www77777| 亚洲精品无码99在线观看 | 特级做a爰片毛片免费看| 亚洲永久精品ww47| 亚洲w码欧洲s码免费| 国产成人精品免费视| 亚洲理论片中文字幕电影| 女人18毛片特级一级免费视频| 特级一级毛片免费看| 亚洲AV无码码潮喷在线观看| 啦啦啦中文在线观看电视剧免费版| 深夜特黄a级毛片免费播放| 亚洲AV无码一区二区乱子伦| 国产情侣激情在线视频免费看| 日韩精品视频在线观看免费| 亚洲精品高清视频| 国产成人aaa在线视频免费观看| 中文字幕免费视频精品一| 在线精品亚洲一区二区|