Flash Streaming

I have a Flex GUI that uses AMF Streaming for BlazeDS on WebLogic 9.2. Because AMF Streaming uses a long poll, it keeps the connection open for a long period of time.

WebLogic has a maximum stream wait time of 600 seconds. WebLogic throws an error and throws a stream if it has been alive longer than the timeout. This causes my GUI to lose connection and hang up.

I can change the default setting in WebLogic (StruckThreadMaxTime), but this will obviously adversely affect legitimately stuck threads.

Please someone tell me what other options should I solve this problem?

+3
source share
2 answers

Perhaps you can use the Consumer.channelDisconnect event and then reconnect?

+2
source

In AIR2.0 added new API idle timeout to help cope with the duration of the poll. You can try how it works, and re-execute or set the timers yourself and try to kill the connection from the end of the floppy disk to the timeout (and then reinstall immediately).

0
source

Source: https://habr.com/ru/post/1721283/


All Articles