ayende / rhino-licensing

A software licensing framework
http://ayende.com
BSD 3-Clause "New" or "Revised" License
333 stars 167 forks source link

nist1.sjc.certifiedtime.com is no longer. #5

Open DrivenLogic opened 11 years ago

DrivenLogic commented 11 years ago

Rhino.Licensing. AbstractLicenseValidator Contains a hardcoded list of time servers.

https://github.com/ayende/rhino-licensing/blob/master/Rhino.Licensing/AbstractLicenseValidator.cs#L39

One of which is nist1.sjc.certifiedtime.com which is no longer up and causes a cascade of exceptions to be thrown.

System.Net.Sockets.SocketException occurred
  Message=No such host is known
       at System.Net.Dns.HostResolutionEndHelper(IAsyncResult asyncResult)

Then:

System.ObjectDisposedException occurred
  Message=Cannot access a disposed object.
Object name: 'System.Net.Sockets.UdpClient'.
       at System.Net.Sockets.UdpClient.EndReceive(IAsyncResult asyncResult, IPEndPoint& remoteEP)

and:

System.NullReferenceException occurred
  Message=Object reference not set to an instance of an object.
  StackTrace:
       at Rhino.Licensing.SntpClient.MaybeOperationTimeout(Object state, Boolean timedOut) in :line 
  InnerException:
{System.NullReferenceException: Object reference not set to an instance of an object.
   at Rhino.Licensing.SntpClient.MaybeOperationTimeout(Object state, Boolean timedOut) in :line 0}
ayende commented 11 years ago

This is fixed in RavenDB now.

On Tue, Jan 29, 2013 at 9:44 AM, drivenlogic.com.au < notifications@github.com> wrote:

Rhino.Licensing. AbstractLicenseValidator Contains a hardcoded list of time servers.

https://github.com/ayende/rhino-licensing/blob/master/Rhino.Licensing/AbstractLicenseValidator.cs#L39

One of which is nist1.sjc.certifiedtime.com which is no longer up and causes a cascade of exceptions to be thrown.

System.Net.Sockets.SocketException occurred Message=No such host is known at System.Net.Dns.HostResolutionEndHelper(IAsyncResult asyncResult)

Then:

System.ObjectDisposedException occurred Message=Cannot access a disposed object. Object name: 'System.Net.Sockets.UdpClient'. at System.Net.Sockets.UdpClient.EndReceive(IAsyncResult asyncResult, IPEndPoint& remoteEP)

and:

System.NullReferenceException occurred Message=Object reference not set to an instance of an object. StackTrace: at Rhino.Licensing.SntpClient.MaybeOperationTimeout(Object state, Boolean timedOut) in :line InnerException: {System.NullReferenceException: Object reference not set to an instance of an object. at Rhino.Licensing.SntpClient.MaybeOperationTimeout(Object state, Boolean timedOut) in :line 0}

— Reply to this email directly or view it on GitHubhttps://github.com/ayende/rhino-licensing/issues/5.