When an iPhone, or generally a Cupertino based client starts playing a stream, my module's public void onHTTPSessionCreate(IHTTPStreamerSession httpSession) method is invoked twice. My authentication method is not idempotent, so for some reason the second time the session is refused.
I am trying to find a way to treat these two connections as one, but I am not finding the common points in the two consequtive requests. Of course the IP and the user-agent is the same, but I am looking for something better. It would also do for me if I could differentiate between the two calls and only process one of them, I guess there should be a protocol related command hidden inside.
Can you help me?