录制c/s结构下的winsocket通信,在vuser_ini中创建连接(lrs_create_socket),在action中发送数据(send),在vuser_end中关闭连接(lrs_close_socket),但是现在的问题是在使用controller运行场景时,运行一段时间出现failed transactions,error的具体信息如下: =========================解决方式汇总,仅供参考
经常出现的Connection reset by peer: 原因可能是多方面的,不过更常见的原因是:①:服务器的并发连接数超过了其承载量,服务器会将其中一些连接Down掉;②:客户关掉了浏览器,而服务器还在给客户端发送数据;③:浏览器端按了Stop
[10054] Connection reset by peer Connection reset by peer is a tough one because it can be caused by so many things. In all cases, the server determines that the socket is no longer good and closes it from its side. Read Error Scenario: Mary couldn't make out what Joe was saying anymore, so she hung up rather than lose his messages (data). A read error occurs when a server cannot successfully read from a user's client. Servers gather information from the client by text, setup, and other items.When the server receives an error when reading from a client, it then disconnects the user, resulting in a read error quit message. Write Error Scenario: Mary was trying to talk to Joe but didn't think she was getting through, so she hung rather than lose his messages (data). A write error occurs when a server cannot successfully write to a user's client. When the server receives information, it usually responds with information of its own. When the server receives an error when writing to a client, it then disconnects the user, resulting in a write error quit message similar to the read error format. Ping Timeout Error Scenario: Mary, having been raised in a household with too many kids and always craving attention, keeps asking to make sure that Joe is still on the line and listening. If he doesn't reply fast enough to suit her, she hangs up. Servers automatically ping users at a preset time. The reason for this is to ensure the client is still connected to the server. When you see "PING? PONG!" results in your status window, it means the server has pinged your client, and it has responded back with a pong to ensure the server that you are still connected. When this does not happen and you disconnect without the server's knowledge, the server will automatically disconnect the user when it does not receive a response, resulting in a ping timeout. Ping timeouts occur to EVERYONE. Broken pipe Error Scenario: Mary had picked up a sticky note with a message she needed to relay to Joe, but somehow between her hand and her mouth, the message got misplaced. Mary was trying to talk to Joe but didn't think she was getting through, so she hung up rather than lose his messages (data). A broken pipe error occurs when the server knows it has a message but can't seem to use its internal data link to get the data out to the socket. Miscellaneous Scenario: Lots of other reasons; perhaps the operator broke in and gave Mary a message that made her doubt the validity of the call so she hung up. 方法:1、排除了程序问题
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. -------------------------------------------------------------------------------- Solution: 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. 答案其实一样,打开socket后记得关。
2010年03月16日 星期二 下午 4:29
|
详细解决方案
转--如何解决connection reset by peer(参考使用)
热度:26 发布时间:2024-01-11 09:29:15.0
2010-04-28 19:33
相关解决方案
- ASP上Set GetSession("conn")=server.CreateObject("adodb.connection")
- connection as SYS should be as SYSDBA or SYSOPER解决办法
- 紧急SelectCommand.Connection 属性尚未初始化
- 网站运行一段时间 就登陆不下去 提示 过一段时间 selectcommand.Connection 属性尚未初始化
- ExecuteReader: Connection 属性尚未初始化。哪位高手帮小弟我啊高手救小弟我啊
- asp.net 中怎样实现 <input type="reset" 。这样的。解决办法
- input( reset) input( submit) 跟 input( button) 有什么不同?解决办法
- connection,command,DataAdapter,Repeater,dataset这些对象那些运用后一定需要手工关闭的
- Timeout while getting a connection from pool解决方法
- 关于<input type="reset" value="清空" />的有关问题
- asp.net 数据库状态The connection's current state is connecting.该如何解决
- ORACLE内char的参数处置(connection.prepareStatement)
- 异常:"Failed to create netty connection"
- 在weblogic中配置了一个JDBC Connection Pool的有关问题
- 如何判断两个JDBC connection 是不是同一个
- Delphi+Sybase 出现 ct_cmd_drop(): user api layer: external error: The connection,该怎么解决
- remote access connection manager 异常5
- the connection with the server was reset?该怎么处理
- the connection with the server was reset?该如何解决
- java.net.SocketException: Software caused connection abort: socket write error,该如何解决
- 数据库连接~connection - -该如何解决
- solaris图形界面起步不了?X connection to igenv245:0.0 broken (explicit kill or server shutdown)
- FTP传输425 Can't open passive connection: Permission denied.的异常
- Connection conn = linejdbc.getopenConnection()请问大家这是什么意思
- Connection refused: connect 问题
- ADODB.Connection '800a0e78' 对象关闭时,不允许操作。 \result.asp, line 29解决办法
- ADODB.Connection '800a0e78' 对象关闭时,不允许操作,该怎么解决
- Set Conn = Server.CreateObject("ADODB.Connection")创建失败,该怎么处理
- :ADODB.Connection (0x800A0E7A) 未找到提供程序。该程序可能未正确安装
- PHP中的list(),each(),reset()函数使用 转载