I'm having an issue with Flash Remoting that we have been able to track down as being cause by our vulnerability scanner. About 2 minutes into the scan process it causes flash remoting to fail and it does not recover until the ColdFusion Application Service is restarted. What's worse is that I'm not seeing any errors in the log to identify that there is a problem and it's a error the end user is seeing and reporting to notify me of the issue.
Any thoughts of what might be causing this? Is there any logging I can enable to help troubleshoot / identify when I have a problem?
Bellow is a modified snippet of the code we are using to do the call. In alert("Error while calling cfc:" + stat.description); is where we are seeing the error.
function getCurrentDate()
{
mx.managers.CursorManager.setBusyCursor();
var connection:mx.remoting.Connection = mx.remoting.NetServices.createGatewayConnection("http://#cgi.HTTP_HOST#/flashservices/gateway/");
var zService:mx.remoting.NetServiceProxy;
var responseHandler = {};
var dmLAST_MOD_DATE= dmLAST_MOD_DATE;
responseHandler.onResult = function( results: Object ):Void
{
mx.managers.CursorManager.removeBusyCursor();
_root.sessionTime = 0;
_root.realSessionTime = 0;
}
responseHandler.onStatus = function( stat: Object ):Void
{
mx.managers.CursorManager.removeBusyCursor();
alert("Error while calling cfc:" + stat.description);
}
zService = connection.getService("X.Y.z_dao", responseHandler);
zService.getToday();
}
I am runnning ColdFusion 11 on Win Server 2012 R2 and IIS 8.5.