REST service unresponsible after systemmode change
Posted: Mon 28 Oct 2013, 07:22
Hello,
Today I've found out that my plugin and client programs couldn't access the REST service of SK after a systemmode change. It appears that when SK changes a scenario (either client, or via REST) the REST service becomes unresponsive for about two minutes.
In the above log you can see that my plugin sets certain DataSource values after changing a systemmode through rest (respons due to the ISystemModeEventListener implementation). My plugin also implements the IDataSourceValueEventListener, and as you can see it takes about 1.5/2 minutes for it to do the request and receive the OnSystemModeChanged event. During that time the REST service is unresponsive, also through the browser.
Just now I've gotten the following error in the SwitchKing Client as well:
Any ideas? 
Cheers
Today I've found out that my plugin and client programs couldn't access the REST service of SK after a systemmode change. It appears that when SK changes a scenario (either client, or via REST) the REST service becomes unresponsive for about two minutes.
Code: Select all
28-10-2013 7:14:44: SwitchKingSystemMode: received new active system mode ID: 2, Name: Night
28-10-2013 7:14:44: SwitchKingClient: Set datasource 49 to Off
28-10-2013 7:16:24: SwitchKingClient: Get datasource 39
28-10-2013 7:16:24: SwitchKingDatasource: received update ID: 49, Value: Off
Just now I've gotten the following error in the SwitchKing Client as well:
Code: Select all
************** Exception Text **************
System.TimeoutException: The request channel timed out while waiting for a reply after 00:01:00. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout. ---> System.TimeoutException: The HTTP request to 'http://localhost:8080/SwitchKingFrameworkServiceHost' has exceeded the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---> System.Net.WebException: The operation has timed out
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
--- End of inner exception stack trace ---
at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
--- End of inner exception stack trace ---

Cheers