Hello, I have a load balancing problem. I'm using HAProxy to load balance RTMPT connections to multiple backend servers. HAProxy does the load balancing by inserting a cookie called SERVERID into the HTTP traffic (which is what RTMPT uses).
I have successfully gotten flash clients to load balance properly but only on windows based machines. The reason for this is that (at least on Mac OSX based machines), every RTMPT request put out by a client on a Mac (any browser) adds a cookie called "Connection: Close", which causes HAProxy to close the HTTP 1.1 connection, and RTMPT doesn't remember the SERVERID cookie for the next HTTP request. So each HTTP Post sent by RTMPT ends up going to a different backend server and no RTMPT connection can be made. Is there a way to call netConnection.addHeader(), to properly set a cookie ID? Alternatively, is there a way to stop a flash client in a mac browser from putting in the "Connection: Close" cookie? Any thoughts? Has anyone tried other methods of RTMPT balancing?

