[ejabberd] how do _you_ close bosh sessions?
sma at turtle-entertainment.de
Mon Jan 25 15:02:13 MSK 2010
yes, i know that, but you'd have to either have the user
click on a "disconnect" button or something like that to
disconnect that way.
in normal application programming you could just disconnect
before you actually close the application, since you got
some kind of "event". unformtunately the "onUnload" event
in a browser is triggered in very different places in
fron the jquery documentation, for example:
"The exact handling of the unload event has varied from version to version of browsers.
For example, some versions of Firefox trigger the event when a link is followed, but not
when the window is closed. In practical usage, behavior should be tested on all
supported browsers, and contrasted with the proprietary beforeunload event."
this potentially leaves a lot of "dangling" connections that
need to be closed by the server in any case...does this
> -----Original Message-----
> From: ejabberd-bounces at jabber.ru
> [mailto:ejabberd-bounces at jabber.ru] On Behalf Of Mickaël Rémond
> Sent: Monday, January 25, 2010 12:56 PM
> To: ejabberd at jabber.ru
> Subject: Re: [ejabberd] how do _you_ close bosh sessions?
> The way to close Bosh session is with terminate:
> Le 25 janv. 2010 à 11:18, Stephan Maihöfer a écrit :
> > hi,
> > we are still struggling to get more thant 2000 users per node
> > connected to the http_bind interface of ejabberd. on friday
> we updated
> > to the new bugfix release of ejabberd 2.1.1 and now we see a lot of
> > these:
> > =ERROR REPORT==== 24-Jan-2010::14:03:54 === Jan 24 14:03:54 jabber3
> > EJABBERD: W(<0.31555.393>:ejabberd_http_bind:486) :
> > Session timeout. Closing the HTTP bind session:
> > would that be a problem to server performance? how can i set that
> > timeout and more importantly:
> > how do you guys using bosh and ejabberd close bosh sessions
> that you
> > open in the browser? we have implemented the disconnect on
> > window.onUnload, but this seems to be not really well suited since
> > browsers interpret that differently. do you worry about that at all?
> > what is your numbers in "users per node" using ejabberd http_bind?
> > greetings,
> > stephan
> > _______________________________________________
> > ejabberd mailing list
> > ejabberd at jabber.ru
> > http://lists.jabber.ru/mailman/listinfo/ejabberd
> ejabberd mailing list
> ejabberd at jabber.ru
More information about the ejabberd