PDA

View Full Version : [CLOSED] URGENT: CDN offline:



michaeld
Nov 23, 2013, 5:36 AM
http://speed.ext.net/ (http://speed.ext.net/ext.net/2.3.1/ux/portal/portal.js) resources unavailable.

michaeld
Nov 23, 2013, 5:47 AM
This has established a need for an API to test the availability of the CDN resource and turn off cdn mode when unavailable.

I can do this with head if I can get the url to a resource.

geoffrey.mcgill
Nov 23, 2013, 6:35 AM
The CDN resources should be fine now.

We're in the process of moving our DNS and CDN services to a new provider.

On the up side, we now have SSL support for CDN resources and will be adding this functionality to the upcoming Ext.NET Pro 2.4 release:

https://speed.ext.net/ext.net/2.3.1/ux/portal/portal.js

michaeld
Nov 23, 2013, 6:37 AM
public class WebRetrieve {
public static bool TestAvailability( string UrlPath, int TimeOut=300 ) {
try {
var req = (HttpWebRequest)WebRequest.Create( UrlPath );
req.Timeout = TimeOut;
req.Method = "HEAD";
using( var resp = (HttpWebResponse)req.GetResponse() ) {
return ( resp.StatusCode == HttpStatusCode.OK );
}
}
catch {
return false;
}


}
}


Call WebRetrieve.TestAvailability( "http://speed.ext.net/ext.net/2.3.1/extnet/extnet-all.js" )
You can set your CDN on if result is true.

Agreed, CDN seems to be back online ... I don't know how long it was out, but at least a half hour to a few. Heads-up for something like that helps.

Daniil
Nov 25, 2013, 7:46 AM
Thank you for sharing such a simple approach to check the availability of CDN.