Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Nov 2006
    Location
    Riyadh
    Posts
    33

    Connection starts as STREAMING then becomes POLLING and says there

    Hi,

    When the midlet is streaming and the connection becomes slow, it switches to polling mode but stays there and doesn't return to streaming even when the connection is better. Any way to have the MIBP library control this and return to streaming as soon as possible ?

    Thanks
    A

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    Hi,

    The status change from STREAMING to POLLING can happen only after a disconnection. That means the connection doesnt't just get slow, but completely stops for some time, resulting in the following status transitions:

    STREAMING --> STALLED --> CONNECTING --> POLLING

    Them if polling works fine, it doesn't switch to streming mode anymore, unless a new disconnection happens and that worflow starts again.

    To control the transitions in the workflow above, you can act on the ConnectionPolicy object, customizing the timeouts that determine any status transition.

  3. #3
    Senior Member
    Join Date
    Nov 2006
    Location
    Riyadh
    Posts
    33
    Thanks,

    But I think there is a bug in ConnectionPolicy.setKeepAliveInterval.
    It always throws an exception regardless of the value you pass in:
    Code:
    This is not a valid value for keepAliveMillis: 10000. Please use a positive number

  4. #4
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi,

    you're right there was a bug I've just fixed.
    It will be available on the next release

 

 

Similar Threads

  1. Replies: 1
    Last Post: January 19th, 2011, 11:23 AM
  2. Client only in polling mode
    By EWANG in forum Client SDKs
    Replies: 12
    Last Post: August 19th, 2010, 09:52 AM
  3. Lightstreamer going into polling mode randomly
    By GoatHunter in forum Client SDKs
    Replies: 3
    Last Post: August 31st, 2009, 09:57 AM
  4. Degrade from STREAMING to POLLING
    By riwang in forum Client SDKs
    Replies: 9
    Last Post: March 31st, 2009, 02:16 PM
  5. Smart polling mode benefits...
    By ddhanis in forum General
    Replies: 1
    Last Post: December 14th, 2007, 05:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 12:51 AM.