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.