连接由对等端重置:套接字写错误 - cfcontent在Coldfusion 10 [英] Connection reset by peer: socket write error - cfcontent on Coldfusion 10

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

问题描述

我们最近从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:由对等连接重置:套接字写入错误

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时,服务器通知它客户端不再在侦听。

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文件中。或许已改变的行为是错误现在作为异常抛出到常规stdout并被应用程序日志捕获。

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.

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

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