zoukankan      html  css  js  c++  java
  • Error -27780: Connection reset by peer: socket write error

    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后记得关

  • 相关阅读:
    系统架构设计师软考总结
    统一用户认证系统CUAS实现要点
    Activiti使用总结
    性能优化总结篇
    CVE-2016-5734-phpmyadmin-4.0.x-4.6.2-代码执行
    WooYun-2016-199433 -phpmyadmin-反序列化-getshell
    CVE-2015-1635-HTTP.SYS远程执行代码
    泛微OA 多版本存在命令执行
    CVE-2019-20372-Nginx error_page 请求走私
    通达OA 页面敏感信息-2013/2015版本
  • 原文地址:https://www.cnblogs.com/yanghj010/p/3624220.html
Copyright © 2011-2022 走看看