Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Sep 2009
    Location
    afsdfa
    Posts
    4

    How to Close Connections Properly

    Hi,

    We are trying to close both a subscriber and a publisher connection, and we are calling Server.Close and client.CloseConnection

    But these don't seem to actually close the connection. After these calls nothing is written to the lightstreamer log and we can't reconnect, but have to restart lightstreamer server in order to reconnect on that port.

    Liz

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,089
    The Server.Close invocation causes the connections towards the Proxy Adapter on Lightstreamer Server to be closed.
    This causes Lightstreamer Server to fail, unless the "robust version" of the Proxy Adapter is used.
    Hence, it must be restarted to go on; however, it should have logged something before closing.

    It's not clear to us what you mean by "subscriber and publisher connection".
    Moreover, I can't identify the client.CloseConnection method.
    Do you refer to some connection that is managed by your Remote Data Adapter to get data from some backend process?
    In this case, consider that the Server.Close method does not invoke any close method on the Remote Data Adapter. Hence, any housekeeping should be requested to the Remote Data Adapter by direct invocation.

 

 

Similar Threads

  1. FATAL EXCEPTION: Connection close activity
    By thomas.renger@gmail.com in forum Client SDKs
    Replies: 2
    Last Post: January 10th, 2011, 04:07 PM
  2. Browser close event
    By pmthiagu in forum Adapter SDKs
    Replies: 3
    Last Post: April 15th, 2010, 10:58 AM
  3. How to close Session in LS?
    By spganesh in forum Client SDKs
    Replies: 1
    Last Post: February 10th, 2010, 11:23 AM
  4. Suspend when close IE
    By skidrow406 in forum Client SDKs
    Replies: 4
    Last Post: March 11th, 2008, 06:32 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 10:03 AM.