Results 1 to 4 of 4

Hybrid View

  1. #1
    Member
    Join Date
    Mar 2009
    Location
    Madrid
    Posts
    16
    Ok, then... until you add the new <session> element , how can i limit opened sessions?. In my case, only a max numbers of concurrents users (1000) should can see the updates.; if the user 1001 try to open a new connection, it should be refused.

    Is there any way to know how many sessions are opened?

    Thanks.

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    The session limit can be imposed through the Metadata Adapter as well.
    Indeed, if the limit is a strict one and is not simply a protection limit, then the Metadata Adapter is the module that should be responsible for it.
    The notifyNewSession and notifySessionClose methods provide you with the ability of counting the sessions and blocking some of them.

    Consider that a strict control of the number of sessions is complicated by several factors.
    As you limit yourself to a single Server instance, this simplifies things significantly.
    However, there is no strict correspondance between sessions in the Server and instances of your application running on the browser, because
    • The life of a session in the Server can continue for some seconds after the client has closed or reloaded the application.
    • In case the Stream-sense mechanism comes into action, two sessions can be temporarily started before one is assigned to the application.
    Hence, you won't exceed 1000 sessions on the Server, but the real sessions may be a few less.
    Can you cope with this?

 

 

Similar Threads

  1. How to setup frequency control?
    By chanro4 in forum Client SDKs
    Replies: 4
    Last Post: January 19th, 2011, 09:29 AM
  2. Multiple Connections
    By mnfjorge in forum Client SDKs
    Replies: 1
    Last Post: March 24th, 2010, 08:52 AM
  3. Replies: 5
    Last Post: September 8th, 2009, 03:07 PM
  4. Multiple control.html requests
    By riwang in forum Client SDKs
    Replies: 3
    Last Post: August 13th, 2009, 09:43 AM
  5. Replies: 2
    Last Post: March 5th, 2008, 06:29 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 02:23 AM.