"Connection reset by peer" Exceptions in Jetty when client is using IE8 and closes tab during loadin

25 篇文章 0 订阅

http://jira.codehaus.org/browse/JETTY-1460

There is a difference between jetty-6 and jetty-7/8 with regards the UncheckedPrintWriter. In jetty-6, any exception caused by the IO was suppressed. In jetty-7, the UncheckedPrintWriter is used and defaults to throwing the exception as a runtime exception.

These are the relevant issues:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=318551
http://jira.codehaus.org/browse/JETTY-1086

I still believe that this log message is caused by a client (or the network or the server's operating system) closing the connection to the client when output is still being written to it.

I will look at why we don't have the ability to turn off the throwing of these runtime IOExceptions (like we do if we are using the UncheckedPrintWriter for the IncludableGzipFilter).

In the meanwhile you may want to set up some custom error pages for the webapp.

====

org.eclipse.jetty.io.EofException

Caused by: java.io.IOException: An existing connection was forcibly closed by the remote host

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Connection reset by peer是指由于对端(peer)的连接被重置而导致的连接错误。该错误通常伴随着ClientAbortException: java.io.IOException: Broken pipe的出现。在采集Metrics发送至ES的过程中,可能会出现在单数整点时正常发送,而在双数整点时发送失败的情况。这可能是因为esClient自动设置的KeepAlive时间为-1,即持续连接,而受到外界因素(如Firewall)的影响导致了TCP连接的单方面断开,从而引发了Connection reset by peer的错误。解决这个问题的方法是调整esClient的KeepAlive时间,确保连接在适当的时间内保持活动状态。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [ES报错:Connection reset by peer 解决经历](https://blog.csdn.net/qq_27327261/article/details/119995930)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] - *2* [Connection reset by peer -- 客户端非正常中断连接](https://blog.csdn.net/tobrainto/article/details/127037321)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值