You are currently viewing WinINet replay fail : The request fails for a response more than 30 sec

WinINet replay fail : The request fails for a response more than 30 sec

What is the problem :

I had faced a similar issues where my request was keep on failing with the error as WinINet replay fail, the response time for that particular request was way more than 30 seconds. The request appears to be failed when it crosses 30sec. There is a defined way where you can get away from this error. Before answering the solution let’s understand the reason of the problem occurred.

Why is that problem :

The Windows Internet (WinInet) enables applications to interact with HTTP protocols to access Internet resources. If you are more curious to deep dive into this term, you can find them in the article, About WinINet. When you are doing WinINet replay this means you are trying to establish communication to HTTP protocol using WinINet API. The default windows timeout for below parameters are set to 30 seconds. Since your request is heavy and takes more than 30 seconds to provide a full response and hence timing out with the error WinINet replay fail.

  • KeepAliveTimeout
  • ReceiveTimeout
  • SendTimeout

Solution to the problem : WinINet replay fail

  • The problem occurs of course in WINDOWS machine as you use windows machine to run the loadrunner script. Press “Windows+R” , this will open up the RUN window.
  • Enter regedit.exe in the opened dialogue box.
  • Click HKEY_CURRENT_USER
HKEY CURRENT USER
HKEY_CURRENT_USER
  • Expand HKEY_CURRENT_USER and get expanded up-to InternetSetting HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\InternetSetting
  • In the Edit menu, go to New, and then click DWORDValue.
  • Type KeepAliveTimeout, and press ENTER.
  • In the Edit menu, go to New, and then click DWORDValue.
  • Type ReceiveTimeout, and press ENTER.
  • In the Edit menu, go to New, and then click DWORDValue.
  • Type SendTimeout, and press ENTER.
  • In the Edit menu, click Modify.
  • Enter the time-out value (in milliseconds), and then click OK. For example, to set the time-out value to one minutes, enter 60000. You can set up the API response time, the number you think.
  • Restart the windows machine.

Conclusion

I hope by now you would have fixed the issues. You can checkout our other blogs on the popular load testing tool K6

About the Author

Pawan Sinha is a blogger whose interests in writing blogs on a day to day issues for any engineer working for a software company. To discuss his work, He has a background in Testing/DevOps/Engineering/Cloud/AWS/GCP. His portfolio.

Leave a Reply