I cannot seem to get the security policy to work to allow me to open a connection to SFS.
I put crossdomain.xml into my web root, and I try to prefetch it on port 80, but it basically locks up for a long time (even the timeout doesn't seem to work--it is in milliseconds, right?), before returning false.
However, if I just try to open a WWW connection, it automatically grabs the policy, and continues happily. This leads me to believe I've got it set up correctly.
Here's a sample:
WWW www = new WWW( "http://" + serverIP + "/robots.txt" );
// can see in web server log the request for
// crossdomain.xml, then robots.txt
if( !Security.PrefetchSocketPolicy( serverIP, 80, 500 ) )
{
// this always fails, and it takes a long time to fail
// (more than 500ms), and there are no requests in the web server logs
Debug.LogError( "Failed to retrieve security policy" );
}
So why would it work for the one, but not the other? Why would there be no access request? Or how can I put a listener on port 843 on a Linux box so I don't need to use the web server?