as it well-known flashplayer will request a policy file from the port
843(by default)

I set up my server at that port use mina 1.1.7, I can successfully
receive the message from the flashplayer

it said <policy-file-request/> + "\0"

but the problem is flashplayer disconnected immediately that request
and I can't send the policy data back.

I've been there for days ... sigh~

I tried the pure nio non-block server way, didn't use any external library

the problem still there!

So I guess it's not the mina's fault, right?

I know the adobe claimed the player will disconnect the server when it
received a "\0"

cause by the "contract" from adobe that means the end of policy file data.

Is there any possibility the java sent a "\0" after the message
arrived ?? it's just so wierd~

I managed to solve this problem used the traditional thread-blocking
way in java, it works

so that is said flashplayer can only use block way ?

but that make no sense~, is there any difference to the client whether
the server is working on blocking or non-blocking way???

I've been tried use FreePascal to write the policy server before, it
use non-block and event-driven model too and works fine,

I just so confused about what is going on there....

the reproduct the scene is very easy setup a mina server on localhost:843

write a simple flash code to connect to any port on localhost.

the attachment is the flash swf file and html , it will try to connect
the 80 port on localhost

you can host this files on your machine and start the mina server and
click on the flash connect button.

y

Reply via email to