如何解决connection reset by peer

来源:学生作业帮助网 编辑:作业帮 时间:2024/07/13 11:52:55
如何解决connection reset by peer
xTQkA+=)$iZj 5=Ф ط"TED"j{ךZnof.柞zsct7B`h)@F&g8Jǰ:TIjQ 𕒪^un~ZAa,#a$%ܟׯ^y3=!d h0t%r!McԚ QC){0ld a8:IS]Pu-#a+9ABr†BD7!4vz}!!*[oDTxT 0In]ІL\^~\̆*UfH #xT@hXUaLU BZFC2Ќ* ex,M)+?0!=HW VP r>'`L_?Vzž5 %2QIEN{zjΊ3wӱifVH{gc0h>[1ڝ?ݥ]ꬮJgU.;(:5` ,>+7IڙyJ.Li(Y Y9di#S +nw^lhzó|[n[Em;_oZsFL,?_6;

如何解决connection reset by peer
如何解决connection reset by peer

如何解决connection reset by peer
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 failed: [10054] Connection reset by peer"
"Error -27790: Failed to read data from server "
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后记得关.