Error: “-27780: read to host failed: 10054 Connection reset by peer”

Error: "-27780: read to host failed: [10054] Connection reset by peer"

If you are getting 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.

For the specific situation described herein, try adding 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.

NOTE: 10054 is a generic Microsoft network error — it is also possible for this error to be caused as a result of the application server being too heavily loaded, or due to a network/OS issue, or even due to an anti-virus/firewall on the server. See http://www.google.com/search?hl=en&q=cause+10054

About these ads

One thought on “Error: “-27780: read to host failed: 10054 Connection reset by peer”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s