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 :
This is related to all the WINDOWS machine. Press "Windows+R" , this will open up the RUN window.
Enter "regedit.exe.
Click HKEY_CURRENT_USER
Similarly expand this and reach up-to: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\InternetSetting
On the Edit menu, go to New, and then click DWORD Value.
Type KeepAliveTimeout, and press ENTER.
Follow Step 2
Type ReceiveTimeout, and press ENTER.
Follow Step 2
Type SendTimeout, and press ENTER.
On 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.
Restart the machine.