aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_bosh.lua
Commit message (Collapse)AuthorAgeFilesLines
...
* | mod_bosh: Fixed use of a private HTTP request property.Waqas Hussain2011-12-091-1/+1
| |
* | mod_bosh: Experimental option 'bosh_auto_cork' which witholds any response ↵Matthew Wild2011-12-071-1/+2
| | | | | | | | to a request until all stanzas in it have been processed.
* | mod_bosh: Move stream:features sending until after the current request has ↵Matthew Wild2011-12-071-8/+16
| | | | | | | | been added to session.requests. Ensures correct inactivity logic.
* | mod_bosh: Remove a session from inactive_sessions before destroying itMatthew Wild2011-12-071-0/+1
| |
* | mod_bosh: Store time to destroy session in inactive_sessions, removing ↵Matthew Wild2011-12-071-13/+10
|/ | | | dependency on session.bosh_max_inactive in cleanup timer
* mod_bosh: s/xmlns:streams/xmlns:stream/ - fixes #265 (thanks Tim)Matthew Wild2011-09-151-2/+2
|
* mod_bosh: Update to use typed variants of module:get_option(), makes it more ↵Matthew Wild2011-07-201-6/+6
| | | | tolerant to config variations and simplifies the code.
* mod_bosh: Fix logging when no sid present, fix a missing semi-colon, avoid ↵Matthew Wild2011-06-281-2/+2
| | | | an extra useless table lookup (thanks Thomas)
* Merge 0.8->trunkMatthew Wild2011-06-071-5/+5
|\
| * Backout commit d6366294f618 which I was testing and didn't mean to push to 0.8Matthew Wild2011-06-051-20/+10
| |
| * mod_bosh: Fix terminate logic - process any stanzas in a terminating ↵Matthew Wild2011-03-041-10/+20
| | | | | | | | request, and add type='terminate' to any responses generated by those stanzas. Finally, close all remaining open requests with type='terminate' and close the session. Fixes #211 (thanks Maranda + waqas).
| * mod_bosh: Mark a session as active when a request comes in, even if we don't ↵Matthew Wild2011-06-051-5/+5
| | | | | | | | end up holding that request, fixes BOSH ghosts (thanks smoku)
* | mod_bosh: Fix terminate logic - process any stanzas in a terminating ↵Matthew Wild2011-03-041-10/+20
|/ | | | request, and add type='terminate' to any responses generated by those stanzas. Finally, close all remaining open requests with type='terminate' and close the session. Fixes #211 (thanks Maranda + waqas).
* mod_bosh: Return true from send()Matthew Wild2011-01-081-0/+1
|
* mod_bosh: Fix for miscalculating inactivity, causing disconnects under a ↵Matthew Wild2011-01-041-5/+6
| | | | steady stream of traffic
* mod_bosh: Fixes to the session creation response - add mandatory 'wait' ↵Matthew Wild2010-12-111-4/+11
| | | | attribute, remove optional 'maxpause' which we don't support, and reformat the code to prevent long lines and wacky indentation. Fixes #219.
* mod_bosh: Switch to util.xmppstream from xmlhandlersMatthew Wild2010-12-071-4/+5
|
* mod_bosh: Use util.timer for timers instead of server.addtimer.Waqas Hussain2010-12-021-2/+3
|
* mod_bosh: Don't add a Content-Type header to the HTTP OPTIONS reply.Waqas Hussain2010-10-221-1/+4
|
* mod_bosh: Fix traceback when initiating a BOSH session to an unknown hostMatthew Wild2010-09-101-3/+3
|
* mod_bosh: Support for reading the client's real IP through HTTP proxies from ↵Matthew Wild2010-08-281-2/+19
| | | | X-Forwarded-For
* mod_bosh: Don't adjust rid when creating a session, as this is no longer ↵Matthew Wild2010-08-221-1/+1
| | | | necessary and causes a log message ('rid too large') to be erroneously printed, fixes #203
* mod_bosh: Fix to properly ignore repeated requestsMatthew Wild2010-08-071-0/+2
|
* mod_bosh: Small change to use variable instead of hard-coded xmlnsMatthew Wild2010-08-061-1/+3
|
* mod_bosh: Much improve session:close() for BOSH sessions, so it now matches ↵Matthew Wild2010-08-061-3/+35
| | | | in usage normal session:close()
* mod_bosh: Add error callback for xmlhandlers, to handle the case of invalid ↵Matthew Wild2010-08-061-0/+15
| | | | or unusable XML in the request payload
* mod_bosh: Remove dependency on eventmanagerMatthew Wild2010-08-031-1/+1
|
* mod_bosh: Add jabber:client namespace to stanzas with no namespaceMatthew Wild2010-07-041-0/+5
|
* mod_bosh: Re-layout session object creation to make lines shorterMatthew Wild2010-05-211-4/+8
|
* mod_bosh: Add option consider_bosh_secure to treat BOSH sessions as ↵Matthew Wild2010-05-211-1/+3
| | | | encrypted even if they don't use HTTP (useful for when secure requests are proxied to Prosody over HTTP)
* Merge with 0.6Matthew Wild2010-05-171-22/+23
|\
| * mod_bosh: Always give requests a destroy handler, so that the management of ↵Matthew Wild2010-05-171-13/+15
| | | | | | | | each session's request array and the inactive_sessions logic can happen in one place. Simplifies everything and concludes this series of BOSH fixes.
| * mod_bosh: Fix handling of rids by not dropping requests with repeated rids ↵Matthew Wild2010-05-171-2/+3
| | | | | | | | (assign them their sid instead), and always starting a session with first_rid-1.
| * mod_bosh: Remove some hacky code for pruning dead requests that hopefully ↵Matthew Wild2010-05-171-5/+0
| | | | | | | | never gets executed - if it does there's a bug anyway.
| * mod_bosh: Remove requests from the session table using table.remove(), ↵Matthew Wild2010-05-171-2/+5
| | | | | | | | prevents the possibility of holes in the array.
* | Merge 0.6->0.7Matthew Wild2010-04-031-2/+2
|\|
| * mod_bosh: Default stanza namespace should be jabber:client (fixes BOSH to ↵Matthew Wild2010-04-031-2/+2
| | | | | | | | work with recent namespace fix)
* | Merge 0.6->0.7Matthew Wild2010-03-221-2/+2
|\|
| * Update copyright headers for 2010Matthew Wild2010-03-221-2/+2
| |
| * mod_bosh: Don't log response XMLMatthew Wild2009-11-211-2/+2
| |
* | mod_bosh: Fire stream-features event using new events API.Waqas Hussain2010-02-121-0/+2
| |
* | mod_bosh: I == fail.Matthew Wild2010-01-221-2/+1
| |
* | mod_bosh: Simplify cross-domain support, and make it work - default is for ↵Matthew Wild2010-01-221-21/+9
| | | | | | | | cross-domain to be disallowed
* | mod_bosh: Support for cross-domain access control using CORSMatthew Wild2010-01-211-1/+34
| |
* | mod_bosh: Trailing whitespaceMatthew Wild2010-01-211-5/+5
| |
* | mod_bosh: Update for new xmlhandlers syntaxMatthew Wild2010-01-191-1/+1
| |
* | mod_bosh: Update for new connection APIMatthew Wild2009-12-171-1/+1
| |
* | mod_bosh: Delay setup until after server is started.Waqas Hussain2009-12-101-3/+10
| |
* | mod_bosh: Don't log response XMLMatthew Wild2009-11-211-2/+2
|/
* mod_bosh: Set session.ip for BOSH sessions.Waqas Hussain2009-11-181-0/+1
|