StreamingAMFChannel - late responses

16 views
Skip to first unread message

Andy

unread,
Jul 5, 2011, 11:28:28 AM7/5/11
to AmFast
I have a Channelset with 2 x Channels
a) SecureAMFChannel
b) StreamingAMFChannel

I'm calling a function on channel (a) which then sends async progress
messages out on channel (b).

The problem is that i'm not getting the progress messages until after
channel (a) has finished its call.

Time message handler fired Timestamp of message(mS/Date)
Tue Jul 5 16:11:00 GMT+0100 2011 1309878639824.503 Tue Jul 5 16:10:39
GMT+0100 2011
Tue Jul 5 16:11:00 GMT+0100 2011 1309878640771.054 Tue Jul 5 16:10:40
GMT+0100 2011
Tue Jul 5 16:11:00 GMT+0100 2011 1309878641653.157 Tue Jul 5 16:10:41
GMT+0100 2011
Tue Jul 5 16:11:00 GMT+0100 2011 1309878642514.122 Tue Jul 5 16:10:42
GMT+0100 2011
Tue Jul 5 16:11:00 GMT+0100 2011 1309878643385.832 Tue Jul 5 16:10:43
GMT+0100 2011
Tue Jul 5 16:11:00 GMT+0100 2011 1309878644323.028 Tue Jul 5 16:10:44
GMT+0100 2011
Tue Jul 5 16:11:00 GMT+0100 2011 1309878645209.26 Tue Jul 5 16:10:45
GMT+0100 2011
Tue Jul 5 16:11:00 GMT+0100 2011 1309878646116.611 Tue Jul 5 16:10:46
GMT+0100 2011
Tue Jul 5 16:11:00 GMT+0100 2011 1309878646980.5059 Tue Jul 5 16:10:46
GMT+0100 2011

As you can see all the events get fired together instead when the
server published them

I'm using cherrypy wsgi server.
The server is on the local machine (although i'm using the 192.168....
ip address)
I'm posting the messages from the back end with publishObject API
I'm consuming the messages with a Consumer() class

Should I be doing anything different such as using an independent
channelset for the Streaming response ?

Any hints would greatly help

Andy

Dave Thompson

unread,
Jul 7, 2011, 12:17:31 AM7/7/11
to amf...@googlegroups.com
Independent channels may help. I'd have to spend some time
investigating the problem further to give you a better answer, and I'm
not sure when that will happen.

-Dave

> --
> You received this message because you are subscribed to the Google Groups "AmFast" group.
> To post to this group, send email to amf...@googlegroups.com.
> To unsubscribe from this group, send email to amfast+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/amfast?hl=en.
>
>

Cooper, Andrew

unread,
Jul 7, 2011, 7:24:08 AM7/7/11
to amf...@googlegroups.com
I tracked my issue down to the following ( I moved to the long poll method)

Client Server
Consumer subscribes
RPC function called
Progress msg sent
..
RPC function (takes over 20 secs) completes
Subscribe request is acknowledged
Receive all queued progress messages

When I moved the subscribe to an earlier time (things started to work)

Client Server
Consumer subscribes
Subscribe request is acknowledged
RPC function called
Progress msg sent
Receive progress message
..
..
RPC function (takes over 20 secs) completes


So it looks like the RPC call is locking the thread in some way it no longer is able to respond to command request such as the subscribe command.


Andy

Reply all
Reply to author
Forward
0 new messages