Results 1 to 4 of 4

Hybrid View

  1. #1
    Member
    Join Date
    Sep 2008
    Location
    Basalt
    Posts
    14

    Reconnecting client after error

    We have a few clients whose IT department has installed a firewall appliance that is interfering with Lightstreamer. A few times a day they get Error 30 and get disconnected.

    While we work with their IT to figure out what is going on I would like to implement a workaround on our side that suppresses the error and automatically reconnects their engine.

    Is this as simple as implementing onServerError and using changeStatus to change to STREAMING?

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    992
    Yes, you just need to implement onServerError, identify the specific case and force STREAMING again.
    This is not the default, because onServerError is usually called when the problem is not recoverable by a new connection attempt. For instance, the connection may have been forcibly interrupted because of a limit on the overall number of sessions.
    If you reconnect in any case, consider that this may not always be the best handling of the case.

    However, if a firewall simply breaks a connection, this should not cause an "Error 30". Can you find more information on what happens in those situations?
    Note that, with the next release of Lightstreamer, the specific cause of the interruption will be available to the client and all available error codes, between 30 and 39, will be used.

  3. #3
    Member
    Join Date
    Sep 2008
    Location
    Basalt
    Posts
    14
    What would cause Error 30? They are the only company that is reporting this as an issue.

    Would there by anything in the logs to look for?

    Thanks.

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    992
    The normal causes are those reported in the onServerError documentation.
    Other causes are possible from the Server point of view, but they should not happen when the Web Client Library is used.

    If JMX is not used or not enabled
    and the Metadata Adapter does never leverage the ConflictingSessionException,
    then the case should be investigated;
    the corresponding Server log might contain some hint.

 

 

Similar Threads

  1. Error: Only a client can stream data.
    By lethanhclub in forum Adapter SDKs
    Replies: 6
    Last Post: September 16th, 2009, 10:26 AM
  2. Client alert with error 120
    By kalski in forum Client SDKs
    Replies: 3
    Last Post: July 31st, 2008, 09:14 AM
  3. Client error - Unable to find the Engine
    By kg_can in forum Client SDKs
    Replies: 1
    Last Post: March 7th, 2008, 09:11 AM

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 01:19 PM.