Projects tigase _server server-core Issues #270
Bosh Session Pre-binding (#270)
Artur Hefczyc opened 1 decade ago

Not sure if this is already submitted.

We need an admin command (ad-hoc and REST API) to create SM user session and Bosh session for a web client and return Bosh session ID and RID back as a result of the command. So the web client can just connect using Bosh session ID without authenticating. The Web client may need to do resource binding though.

Maybe the simplest way to implement it would be to add an admin ad-hoc command to the Bosh component which would run more or less initial user session creation steps similar to a normal Bosh client login.

Please estimate work effort and based on this we will decide whether it goes to version 5.2.0 or later. Maybe Andrzej can have some suggestions for this?

Take into consideration: http://metajack.im/2009/12/14/fastest-xmpp-sessions-with-http-prebinding/

wojciech.kapcia@tigase.net commented 1 decade ago

The Web client may need to do resource binding though.

is this a requirement that the script could either bind resource or leave it up to the client (e.g. if no resource is provided or the option is selected)?

Approach with mimicking regular bosh session creation seems good; I think that for adhoc and creating authenticated bosh session I would need around 10-12h.

As for the REST - there is already handler that could handle already present ad-hoc (Andrzej, could you confirm?) thus it won't be explicitly necessary.

Andrzej Wójcik (Tigase) commented 1 decade ago

Yes, there is a handler for REST which should be able to handle almost any AdHoc command, which does not require any additional data except from data passed in data form in fields.

Artur Hefczyc commented 1 decade ago

is this a requirement that the script could either bind resource or leave it up to the client (e.g. if no resource is provided or the option is selected)?

Unless there is a reason for not having the option available I think it is always better to have the option.

nurnabi siddique commented 1 decade ago

it will be great if tigase support it.But one information will it increase the load into server side too?

Artur Hefczyc commented 1 decade ago

The load will be no different than authenticating the user directly through the Bosh. I even expect slightly lower load.

wojciech.kapcia@tigase.net commented 1 decade ago

Applied in changeset tigase-server|commit:3c24832bb83e417ec4e74b22e84c1fccc18cc4e3.

issue 1 of 1
Type
Task
Priority
Major
Assignee
RedmineID
1669
Version
tigase-server-7.0.0
Estimation
24h
Spent time
144h
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#270
Please wait...
Page is in error, reload to recover