-
July 2nd, 2009, 08:49 AM
#2
About connections:
The <max_clients> configuration element was introduced as a protection from overload, hence it is just a limit on the overall number of sockets currently open.
This may depend on implementation details. For instance, control connections used for subscription requests are also included (hence, multiple connections are possible for a user).
So, the setting is not meant as a limit on sessions and there is no guarantee on the number of concurrent sessions that can be reached.
The setting will be deprecated in the next minor upgrade of Lightstreamer, where a <session> element will be finally introduced.
About subscribed items:
A limit on the subscriptions can be applied by the Metadata Adapter, by implementing notifyNewTables, notifyTablesClose and wantsTablesNotification properly.
By throwing a CreditsException you can refuse the subscription of a new table. This applies to the whole table; you cannot accept only a subset of the involved items.
The client is notified of the refusal. For instance, a web client gets an invocation of the onServerDeny callback with a 0 or negative error code.
Note: notifyNewTables takes an array of tables, but you should expect only one table; only particular clients submit atomic requests for multiple tables.
Similar Threads
-
By chanro4 in forum Client SDKs
Replies: 4
Last Post: January 19th, 2011, 09:29 AM
-
By mnfjorge in forum Client SDKs
Replies: 1
Last Post: March 24th, 2010, 08:52 AM
-
By mnenchev in forum General
Replies: 5
Last Post: September 8th, 2009, 03:07 PM
-
By riwang in forum Client SDKs
Replies: 3
Last Post: August 13th, 2009, 09:43 AM
-
By indrajit in forum General
Replies: 2
Last Post: March 5th, 2008, 06:29 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 03:30 PM.
Bookmarks