简体   繁体   English

防止管道破裂的方法?

[英]Ways to prevent broken pipe?

ClientAbortException:  java.net.SocketException: Broken pipe

If I am wright, this happens when user aborts current operation or makes another request, before the last one is finished. 如果我没事,这是在用户中止当前操作或在最后一个请求完成之前发出另一个请求时发生的。

Can this reflects on browsing user or is this (always) just a Catalinas exception? 可这反映了浏览用户,或者这是(总是) 只是一个例外卡塔利纳斯?

Are there any ways to avoid this exception? 有什么办法可以避免这种异常?

Try defining a filter for all resources in your webapp, and catch & discard the exception there. 尝试为Webapp中的所有资源定义过滤器,然后在其中捕获并丢弃异常。 I'm not sure if it will work, but give it a try. 我不确定是否可以使用,但请尝试一下。

In 99% of the cases this exception can be ignored, because it's mainly called by user disconnects (i-net breaks, user hits stop, closes browser, etc) 在99%的情况下,可以忽略此异常,因为它主要由用户断开连接(i-net中断,用户命中停止,关闭浏览器等)来调用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM