Workaround For WinInet DNS not refreshing when using KB 263558


If you are making Synchronous calls in WinInet, the DNS timeouts don’t appear to work when set (see: http://support.microsoft.com/kb/263558 ).


Async calls do however work correctly.


One workaround is to simply restart the application using WinInet. 


I found a code workaround for the issue as well.  Simply open and close the handle you get with the InternetOpen call then open it again:


hOpen= ::InternetOpen(…..);


InternetCloseHandle(hOpen);


hOpen= ::InternetOpen(…..);


// now use handle…


 The performance impact will be very low.


 -Jeff

Comments (1)

  1. jpsanders says:

    See the KB article.  It is now updated with this information.