Adobe Socket Policy File Server Problems

前端 未结 7 884
旧时难觅i
旧时难觅i 2021-01-07 13:27

Has anyone been able to successfully implement a service to serve the required socket policy file to FlashPlayer?

I am running the Python implementation of the servi

7条回答
  •  無奈伤痛
    2021-01-07 14:16

    I've hit this a couple of times now, trying to use someone else's policy server, and writing my own. The elements that I've found that all need to be there:

    • listen on socket 843.
    • When receiving a new connection, read all data. Don't just send the policy on connect!
    • optionally, you can test if the received data is a correct policy request, or just ignore it. I haven't seen a good reason to validate in my usage.
    • send the xml with the trailing "\0" byte.
    • close the socket!
    • more than likely you need the secure="false" option in the allow-access-from section of the policy.

提交回复
热议问题