对等方重置连接:套接字写入错误 - Coldfusion 10 上的 cfcontent [英] Connection reset by peer: socket write error - cfcontent on Coldfusion 10

查看:18
本文介绍了对等方重置连接:套接字写入错误 - Coldfusion 10 上的 cfcontent的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们最近从 Coldfusion 9 升级到 CF10,现在我在使用 cfcontent 提供文档(pdf、doc 等)的页面上收到零星错误.我正在使用 cfcontent 控制对文件,因为有些仅供内部使用.使用 CF9(两个标准)时没有发生这种情况,我认为这可能与对 Tomcat 的更改有关.

We recently upgraded from Coldfusion 9 to CF10 and I'm now receiving a sporadic error on a page where I'm using cfcontent to serve documents (pdf, doc, etc.) I'm using cfcontent to control access to the files, as some are for internal use only. This was not occurring when using CF9 (both standard), and I'm thinking it may be related to the change to Tomcat.

我无法重现错误,但它每天发生 200 次左右:

I can't recreate the error, but it's occurring 200 times per day or so:

coldfusion.tagext.OutputException: 这个输出异常的原因是:ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error

coldfusion.tagext.OutputException: The cause of this output exception was that: ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error

推荐答案

这个错误表示HTTP连接被客户端(浏览器)终止.当用户在长时间运行的请求期间点击停止"按钮时会发生这种情况.CF 服务器准备输出缓冲区,但当它把它交给 Apache 或 IIS 时,web 服务器通知它客户端不再监听.

This error indicates that the HTTP connection was terminated by the client (the browser). It occurs when the user hits the "stop" button during a long running request. The CF Server prepares the output buffer but when it hands it back to Apache or IIS the web server informs it that client is no longer listening.

过去,此错误会出现在server.log"文件中.也许已经改变的行为是错误现在作为常规标准输出的异常抛出并被应用程序日志捕获.

In the past this error would occur in the "server.log" file. Perhaps the behavior that has changed is that the error is now thrown as an exception to the regular stdout and trapped by the application logs.

出现此错误可能是因为用户不耐烦了,但也可能因为网络问题或 IIS 或 Apache 配置不当而出现.它也可能而且确实在重负载下发生 - 任何使 HTTP/TCP 连接断开的事情都可能产生此错误.再说一遍……我不是说你应该担心这个错误.这是一种以前未被观察到的新行为,因此值得关注.但是有合法的原因可能会引发这种错误.

This error could be occuring because users are getting impatient but it could also be occurring due to network issues or improperly configured IIS or Apache. It could and does occur under heavy load as well - anything that make HTTP/TCP connections drop could generate this error. Again... I'm not saying you should not worry about the error. It is a new previously unobserved behavior and as such it warrants attention. But there are legitimate reasons why this sort of error might be thrown.

这篇关于对等方重置连接:套接字写入错误 - Coldfusion 10 上的 cfcontent的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆