Error: -27778 : SSL protocol error when attempting to read with host

When running 1 Vuser on the Controller against localhost, the following error occurs even though the script replays fine in VuGen:

Error: -27778 : Action1.c(xx): Error: SSL protocol error when attempting to read with host "abcd.com"

Action1.c(xx): t=82568ms : error:140943FC:SSL routines:SSL3_READ_BYTES:sslv3 alert bad record mac

Consider the following possible workarounds to this intermittent SSL error when replaying a LoadRunner scenario:

1. Add the following statement to the beginning of the script:

web_set_sockets_option("SSL_VERSION", "3");

This forces the SSL connection to the server to use version 3 of the SSL protocol rather than letting the server suggest a version during the connection handshake.

2. Add the following statement to the beginning of the script:

web_set_sockets_option("MAX_CONNECTIONS_PER_HOST","1");

This forces a single TCP connection from the Load Generator to the server under test, thus eliminating the possibility of the server prematurely shutting down an existing connection and causing errors when LoadRunner sends data using that connection.

It has been found that changing the number of open connections does not cause a significant change in performance. Performance issues are more likely to be caused by other factors such as network congestion at a router/switch/hub than by the number of maximum connections allowed.

3. Disable the LoadRunner Controller Web Page Diagnostics if there is a proxy server located between the Load Generator and the server under test. To disable Web Page Diagnostics from the LoadRunner Controller:

a. In the LoadRunner Controller Design tab go to Diagnostics->Configuration

b. Select "Disable" tab for "Web Page Diagnostics"

c. Click "OK" to close the diaglogue to complete the setup

d Save the scenario and run it

Note, this workaround removes the Web Page Component Breakdown data from a subsequent Analysis session using Graph -> Add New Graph -> Web Page Diagnostics.

4. If none of the above helps, then use the WinInet Replay engine. To do so, go to Run-Time Settings -> Preferences -> Select "WinInet Replay Engine instead of Sockets (Windows Only)."

Advertisements

2 thoughts on “Error: -27778 : SSL protocol error when attempting to read with host

  1. sravan

    Hi Adbul,

    I tried all optionsprovided by you in my script.still it is not working.Can you help me on this issue to resolve it.
    Error: -27778 : Action1.c(xx): Error: SSL protocol error when attempting to read with host “abcd.com

    Reply

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