Error -27780: Connection reset by peer: socket write error
2014-03-25 21:40
260 查看
Problem Description: Error: "-27780: read to host failed: [10054] Connection reset by peer"
The user gets the following error messages during replay of a Web script:
"Error -27780: read to host <host name> failed: [10054] Connection reset by peer"
"Error -27790: Failed to read data from server <host name>"
Diagnosis:
The client sends a POST request to the server and gets a response with HTTP status 200, connection close and redirection using both JS code and meta-refresh. There is no content-length, so the client is supposed to decide when to close the connection. Internet Explorer closes the connection before sending the request to the redirection URL. But, LoadRunner does not; later the server closes the connection, and the result is the error message.
原因可能是多方面的,不过更常见的原因是:
①:服务器的并发连接数超过了其承载量,服务器会将其中一些连接Down掉;
②:客户关掉了浏览器,而服务器还在给客户端发送数据;
③:浏览器端按了Stop 。
--------- Troubleshooting-----------------------------------
Use web_set_sockets_option ("CLOSE_KEEPALIVE_CONNECTIONS", "1")
Add the following step after the POST step:
web_set_sockets_option("CLOSE_KEEPALIVE_CONNECTIONS", "1");
This step closes all the open connections, and as a result, LoadRunner stops waiting for the rest of the response of the redirection.
--------- 经验-----------------------------------
先排除:
1、程序问题
2、服务器防火墙、杀毒软件问题
3、使用IP 欺骗无效。
结论:打开socket后记得关
The user gets the following error messages during replay of a Web script:
"Error -27780: read to host <host name> failed: [10054] Connection reset by peer"
"Error -27790: Failed to read data from server <host name>"
Diagnosis:
The client sends a POST request to the server and gets a response with HTTP status 200, connection close and redirection using both JS code and meta-refresh. There is no content-length, so the client is supposed to decide when to close the connection. Internet Explorer closes the connection before sending the request to the redirection URL. But, LoadRunner does not; later the server closes the connection, and the result is the error message.
原因可能是多方面的,不过更常见的原因是:
①:服务器的并发连接数超过了其承载量,服务器会将其中一些连接Down掉;
②:客户关掉了浏览器,而服务器还在给客户端发送数据;
③:浏览器端按了Stop 。
--------- Troubleshooting-----------------------------------
Use web_set_sockets_option ("CLOSE_KEEPALIVE_CONNECTIONS", "1")
Add the following step after the POST step:
web_set_sockets_option("CLOSE_KEEPALIVE_CONNECTIONS", "1");
This step closes all the open connections, and as a result, LoadRunner stops waiting for the rest of the response of the redirection.
--------- 经验-----------------------------------
先排除:
1、程序问题
2、服务器防火墙、杀毒软件问题
3、使用IP 欺骗无效。
结论:打开socket后记得关
相关文章推荐
- java.net.SocketException: Connection reset by peer: socket write error
- Redis经常连接不上还报 Connection reset by peer: socket write error的错误的解决办法
- java.net.SocketException: Connection reset by peer: socket write error
- 记一次Maven远程部署到tomcat所遇到的Bug:java.net.SocketException: Connection reset by peer: socket write error
- Tomcat:Connection reset by peer: socket write error
- 异常:Connection reset by peer socket write error
- spring+ibatis问题1—— 程序报错:java.sql.SQLException: Io 异常: Connection reset by peer, socket write error; ”或“java.sql.SQLException 关闭的连接”异常
- 待解决:Connection reset by peer: socket write error
- [Microsoft][SQLServer 2000 Driver for JDBC]Connection reset by peer: socket write error
- "ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error"异常出现的原因
- 文件上传异常connection reset by peer, socket write error
- ClientAbortException,Connection reset by peer: socket write error
- ClientAbortException,Connection reset by peer: socket write error
- IE习题(word文档)下载报错(Connection reset by peer: socket write error) 。谷歌、360浏览器下面下载正常
- Connection reset by peer: socket write error 的一个原因分析
- ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error
- 关于错误:ORA-12592: TNS: 包错误 和 Io 异常: Connection reset by peer: socket write error
- Connection reset by peer: socket write error错误分析及解决
- Connection reset by peer: socket write error错误分析及解决 .
- Connection reset,Connection reset by peer,Software caused connection abort :socket write error,recv failed