[haXe] remoting and policy files?

Nicolas Cannasse ncannasse at motion-twin.com
Wed Apr 11 11:21:58 CEST 2007


> hi list
> 
> So i have a flash 9 haxe remoting chat server going and i'm trying to
> deploy it. I usually deploy my non-haxe chatserver in a multiple server
> environment where the flash client is served from one server and it's
> chat component connects to the chat server on another physical server. I
> do this to keep load on the main server down and with a policy file on
> the second server there is no problem with the flash chat client
> connecting to the chatserver.
[...]
> this is all conecture, but i guess the client haxe remoting request has
> been intercepted by flash and had a policy request added which probably
> screws up all the serialisation and stuff.
> 
> Unless there's a way for remoting server to specify a policy file, which
> may be the cleanest fix, I think this is a problem.

I added on CVS the method onXml in the ThreadRemotingServer class. By
default it throws an exception but you can redefine it in order to
handle the policy-request the way you prefer.

Best,
Nicolas




More information about the Haxe mailing list