Wininet replay fail : WinInet Default timeout which is 30 second and the request fails as the response takes more than 30 seconds

I had faced a similar issues when the response time for a particular request was more than 30 seconds. The requests were keep on failing when it just crosses 30sec.

Solution :


  1. This is related to all the WINDOWS machine. Press "Windows+R" , this will open up the RUN window.

  2. Enter "regedit.exe.

  3. Click HKEY_CURRENT_USER

Should look like
  1. Similarly expand this and reach up-to: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\InternetSetting

  2. On the Edit menu, go to New, and then click DWORD Value.

  3. Type KeepAliveTimeout, and press ENTER.

  4. Follow Step 2

  5. Type ReceiveTimeout, and press ENTER.

  6. Follow Step 2

  7. Type SendTimeout, and press ENTER.

  8. On the Edit menu, click Modify.

  9. Enter the time-out value (in milliseconds), and then click OK. For example, to set the time-out value to one minutes, enter 60000.

  10. Restart the machine.