Skip navigation
Currently Being Moderated

Session expired with StreamingAMFChannel

Jul 2, 2012 10:27 AM

Tags: #session #4 #timeout #blaze #consumer #streamingamf

Blaze 4.0

 

I have a flex desktop app which has only one consumer using a streaming amfChannel. So there is no producer.

After 30 minutes my channel gets disconnected, because the httpsession on the server expired. The connection was not idle, because every second 2 messages are streamed.

 

I also defined a heartbeatInterval on the channelset, but still the session expires.

 

This is the Logging:

BlazeDS :07/02/2012 19:09:49.165 [DEBUG] [Client.MessageClient] MessageClient created with clientId '696A7855-841D-ABE3-505A-AE5699DF4B4A' for destination 'messages-feed'.

BlazeDS :07/02/2012 19:39:06.434 [DEBUG] [Client.MessageClient] MessageClient with clientId '696A7855-841D-ABE3-505A-AE5699DF4B4A' for destination 'messages-feed' has been invalidated.

BlazeDS :07/02/2012 19:39:06.435 [DEBUG] [Client.FlexClient] FlexClient with id '696A75CE-8B0E-949A-47CC-9F8256CC96F7' has been invalidated.

 

Consumer:

<mx:Consumer id="consumer"

                                                   destination="messages-feed"

                                                   channelSet="{channelSet}"

                                                   resubscribeInterval="5000"

                                                   resubscribeAttempts="-1"

                                                   message="messageHandler(event)"

                                                   channelDisconnect="consumerDisconnectHandler(event)"

                                                   />


Why is the HTTP session expiring? Is that because only messages are pushed in the direction from server to client?

 
Replies
  • Currently Being Moderated
    Jul 3, 2012 12:42 AM   in reply to dman_80

    In the services-config.xml, can you make sure you have both server-to-client-heartbeat-millis defined on the channel and heartbeat-interval-millis defined on the flex-client? This happens because even though the streaming connection is open, the App Server ivalidates the session if there is no incoming request from the client side. Ideally setting server-to-client-heartbeat-millis on the services-config.xml should fix this.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 7, 2012 2:48 AM   in reply to dman_80

    Iam also facing the same issue.

    Have you got any solution for this?

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 11, 2012 2:58 PM   in reply to VidhyaHere

    Did you ever fix this? I seem to be suffering a very similar problem.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 13, 2012 2:11 AM   in reply to alinator11

    I have created a flex browser...Everything working fine on it.

    But session expires on Firefox and IE..

    If you fix this, pls let me know.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points