Flex streaming timing out

571 views Asked by At

I have a Flex GUI which is using AMF Streaming to BlazeDS on WebLogic 9.2. As the AMF Streaming uses long polling, it keeps the connection open for extended periods of time.

WebLogic has a max thread timeout of 600 seconds. WebLogic throws an error and times out the thread if it has been alive for longer than the timeout. This causes my GUI to lose its connection and hang.

I could change the default setting in WebLogic (StruckThreadMaxTime) but this would obviously negatively effect legitimately stuck threads.

Please can anyone tell me what other options I have to fix this problem?

2

There are 2 answers

0
James Ward On BEST ANSWER

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

2
Gregor Kiddie On

There is a new idle timeout API been added in AIR2.0 to help deal with long polling. You could try hunt down how it works and re-implement or setup timers yourself and try kill the connection from the flex end before the timeout (and then immediately re-estabilsh)