AMF3 Server side NetConnections + admin service data = crash?

I’ve been testing a lot of my code against FMS 3.5 over the past couple of weeks, and I’ve hit an interesting snag when dealing with data returned from the FMS admin service API methods.

The scenario is as follows:

There are two FMS applications…Application “A” polls the admin services of a cluster of FMS servers, to keep track of instances and instance stats. Application “B” connects to Application A, and requests the collected admin service data on an interval (once a second).

Application A works fine on FMS 3.5, but application B was choking on the data and crashing after 20 seconds or so. I spent a few days deconstructing the application to find the problem… and when I was down to a single hair left on my head, I stumbled across the solution… setting the object encoding of the netconnection to AMF0 stopped the crashing.

Now, truth be told, I don’t know why this is. I’ve passed the info along to someone on the FMS engineering team, and hopefully whatever the bug is will be squashed in the next update. But, for the short term, if your FMS apps are crashing on 3.5, and you’re using admin service data, try setting your netconnection’s object encoding to AMF0.

Leave a Reply