Log

plugins/mod_bosh.lua @ 7652:7cc3d6c764ce

description author age
mod_bosh: Log when a stanza isn't handled because we can't find a session for it Matthew Wild 2016-09-02
mod_bosh: Correctly handle requests arriving out of order (thanks Jitsi folk!) Matthew Wild 2016-09-02
mod_bosh: Fix merge mistakes from c8923f882274 Kim Alvefur 2016-07-14
mod_bosh: Add annotations to ignore unused arguments [luacheck] Kim Alvefur 2016-04-19
mod_bosh: Remove unused imports (also mistake in merge) Kim Alvefur 2016-04-19
mod_bosh: Fix imports that got lost in merge Kim Alvefur 2016-04-19
Merge 0.10->trunk Kim Alvefur 2016-04-19
mod_bosh: Don't decrement rid twice (thanks av6) Kim Alvefur 2016-04-19
Merge 0.10->trunk Kim Alvefur 2016-04-19
mod_bosh: Reject fractional 'wait' (See #343) Kim Alvefur 2016-04-19
mod_bosh: Return a proper BOSH error response from XML parse error callback (see #343) Kim Alvefur 2016-04-19
mod_bosh: Validate that 'sid' and 'wait' have sane values (fixes #475, also see #343) Kim Alvefur 2016-04-19
mod_bosh: Validate 'to' host (see #343) Kim Alvefur 2016-04-19
mod_bosh: Return a proper BOSH error response instead of deprecated(?) status code (See #343) Kim Alvefur 2016-04-19
mod_bosh: Log error returned from stream:feed() Kim Alvefur 2016-04-19
mod_bosh: Return if a response has been sent already (See #343) Kim Alvefur 2016-04-19
mod_bosh: Remove unused import Kim Alvefur 2016-04-19
Update every link to the documentation to use HTTPS Emmanuel Gil Peyrot 2016-04-16
Merge 0.10->trunk Kim Alvefur 2016-04-02
mod_bosh: Skip sending stanzas removed out by filters (fixes #657) Kim Alvefur 2016-04-01
Merge 0.10->trunk Kim Alvefur 2016-03-17
Backed out BOSH use of util.async (changeset f0687c313cf1) Kim Alvefur 2016-03-17
Merge 0.10->trunk Matthew Wild 2016-01-04
mod_bosh: Fire event when BOSH session is created Matthew Wild 2016-01-04
mod_bosh: Instead of a global once-per-second timer add a timer for each session when needed Kim Alvefur 2015-12-07
mod_bosh: Use util.async Kim Alvefur 2014-12-07
Remove all trailing whitespace Florian Zeitz 2013-08-09
mod_bosh, mod_c2s: No longer fire stream-features globally (nobody uses it, and shared modules make it easy for global modules to hook per-host now) Matthew Wild 2013-07-15
Merge 0.9->trunk Matthew Wild 2013-07-08
mod_bosh: pcall() core_process_stanza per stanza, to bring in line with other listeners. This ensures that stanzas following a traceback-causing stanza in a request will still be processed (as would happen on normal c2s). Matthew Wild 2013-07-08
mod_bosh: Only pass stanza to core_process_stanza if it wasn't dropped by filters Matthew Wild 2013-07-08
Merge 0.9->trunk Matthew Wild 2013-06-11
mod_bosh: Remove Connection: keep-alive header (conflicts with new net.http.server) Matthew Wild 2013-06-07
mod_bosh: Fix global write Matthew Wild 2013-06-07
mod_bosh: Reduce a little code. Waqas Hussain 2013-06-11
mod_bosh: Make waiting_requests and dead_sessions shared to preserve across reloads Matthew Wild 2013-06-08
mod_bosh: Don't tostring() stream:features when passing to session.send(). Waqas Hussain 2013-06-07
mod_bosh: Only return CORS headers if the Origin header is received, and CORS is enabled. Waqas Hussain 2013-06-07
mod_bosh: Return empty string from the OPTIONS event handler, don't return the response object itself. Waqas Hussain 2013-06-07
mod_bosh: Rename event handler argument to event, not request. Waqas Hussain 2013-06-07
Merge 0.9->trunk Matthew Wild 2013-06-07
mod_bosh: Remove logging of request.id, it doesn't exist in the new HTTP server API (thanks Mikael Nordfeldth) Matthew Wild 2013-06-07
mod_bosh: Remove another place we set headers, fixes #348 Matthew Wild 2013-06-06
mod_bosh: Clean up handling of response headers, set them only in one place Matthew Wild 2013-06-05
mod_bosh: Return errors when appropriate (invalid XML, missing sid) Matthew Wild 2013-06-05
mod_bosh: Remove some very verbose logging Matthew Wild 2013-06-05
Merge 0.9->trunk Matthew Wild 2013-06-05
mod_bosh: Reset creating_session to prevent putting unnecessary attributes into every BOSH response Matthew Wild 2013-06-05
Merge 0.9->trunk Kim Alvefur 2013-06-02
mod_bosh: Fix traceback in case session is destroyed during the stream-features event (thanks Biszkopcik) Kim Alvefur 2013-06-02
mod_bosh: rename variable for clarity Matthew Wild 2013-05-24
mod_bosh: Some very minor whitespace/layout fixes Matthew Wild 2013-05-24
mod_bosh: Add 'Connection: keep-alive' header Matthew Wild 2012-11-22
mod_bosh: Add support for stanza filters to BOSH sessions (needed by some plugins) Matthew Wild 2012-11-22
mod_bosh: Add bosh_max_wait config option, to limit the amount of time a client can request for the server to hold open requests Matthew Wild 2012-11-22
mod_bosh: Share sessions and inactive_sessions tables Matthew Wild 2012-11-15
mod_bosh: Remove redundant code (send stream features in only one place) (thanks Zash) Matthew Wild 2012-08-01
mod_bosh: Remove troublesome return... continue processing of the streamopen after session creation (because since 16c7b510694b we no longer send an early response) Matthew Wild 2012-07-31
mod_bosh: Correctly handle data included in the session initiation request, and cork session while a request is being processed, preventing replying to requests when there may be more data to come, reducing round-trips. Matthew Wild 2012-07-29
mod_bosh: Backout revision bc0a68cae236 (experimental bosh_auto_cork option) as I don't believe it works Matthew Wild 2012-07-28
mod_admin_adhoc, mod_admin_telnet, mod_bosh, mod_c2s, mod_component, mod_pep, mod_presence, mod_roster, mod_s2s: Import core_post_stanza from the global prosody table. Kim Alvefur 2012-07-26
mod_bosh: Use new format for headers when checking for proxies to get the originating IP Kim Alvefur 2012-07-23
mod_bosh: Set Content-Type to text/html for GET response (thanks Medics) Matthew Wild 2012-05-15
mod_bosh: Remove unused send_buffer variable Matthew Wild 2012-04-28
mod_bosh: Fix request/response mixup Matthew Wild 2012-04-28
mod_bosh: Remove unused import of util.timer Matthew Wild 2012-04-28
mod_bosh: Remove unused import of net.httpserver Matthew Wild 2012-04-27
mod_bosh: Add routes without trailing-'/', so that both /http-bind and /http-bind/ work again Matthew Wild 2012-04-27
mod_bosh: Update informational message on GET Matthew Wild 2012-04-26
mod_bosh: Large commit to update to mod_http/net.http.server APIs. Becomes a shared module. Matthew Wild 2012-04-25
mod_bosh: Optimisation, store reply_before value as waiting_requests value (saves a lookup) Matthew Wild 2012-04-25
Merge timber->trunk - thanks everyone! Matthew Wild 2012-04-24
mod_posix, mod_bosh, mod_admin_telnet: Use module:set_global() Kim Alvefur 2012-03-15
Merge with 0.9 Matthew Wild 2012-04-19
mod_bosh: Log error on BOSH parse failure (thanks daurnimator) Matthew Wild 2012-04-19
mod_bosh: Remove unused reference to lxp Waqas Hussain 2011-12-14
mod_bosh: Fixed use of a private HTTP request property. Waqas Hussain 2011-12-09
mod_bosh: Experimental option 'bosh_auto_cork' which witholds any response to a request until all stanzas in it have been processed. Matthew Wild 2011-12-07
mod_bosh: Move stream:features sending until after the current request has been added to session.requests. Ensures correct inactivity logic. Matthew Wild 2011-12-07
mod_bosh: Remove a session from inactive_sessions before destroying it Matthew Wild 2011-12-07
mod_bosh: Store time to destroy session in inactive_sessions, removing dependency on session.bosh_max_inactive in cleanup timer Matthew Wild 2011-12-07
mod_bosh: s/xmlns:streams/xmlns:stream/ - fixes #265 (thanks Tim) Matthew Wild 2011-09-15
mod_bosh: Update to use typed variants of module:get_option(), makes it more tolerant to config variations and simplifies the code. Matthew Wild 2011-07-20
mod_bosh: Fix logging when no sid present, fix a missing semi-colon, avoid an extra useless table lookup (thanks Thomas) Matthew Wild 2011-06-28
Merge 0.8->trunk Matthew Wild 2011-06-07
Backout commit d6366294f618 which I was testing and didn't mean to push to 0.8 Matthew Wild 2011-06-05
mod_bosh: Fix terminate logic - process any stanzas in a terminating 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). Matthew Wild 2011-03-04
mod_bosh: Mark a session as active when a request comes in, even if we don't end up holding that request, fixes BOSH ghosts (thanks smoku) Matthew Wild 2011-06-05
mod_bosh: Fix terminate logic - process any stanzas in a terminating 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). Matthew Wild 2011-03-04
mod_bosh: Return true from send() Matthew Wild 2011-01-08
mod_bosh: Fix for miscalculating inactivity, causing disconnects under a steady stream of traffic Matthew Wild 2011-01-04
mod_bosh: Fixes to the session creation response - add mandatory 'wait' attribute, remove optional 'maxpause' which we don't support, and reformat the code to prevent long lines and wacky indentation. Fixes #219. Matthew Wild 2010-12-11
mod_bosh: Switch to util.xmppstream from xmlhandlers Matthew Wild 2010-12-07
mod_bosh: Use util.timer for timers instead of server.addtimer. Waqas Hussain 2010-12-02
mod_bosh: Don't add a Content-Type header to the HTTP OPTIONS reply. Waqas Hussain 2010-10-22
mod_bosh: Fix traceback when initiating a BOSH session to an unknown host Matthew Wild 2010-09-10
mod_bosh: Support for reading the client's real IP through HTTP proxies from X-Forwarded-For Matthew Wild 2010-08-28
mod_bosh: Don't adjust rid when creating a session, as this is no longer necessary and causes a log message ('rid too large') to be erroneously printed, fixes #203 Matthew Wild 2010-08-22
mod_bosh: Fix to properly ignore repeated requests Matthew Wild 2010-08-07
mod_bosh: Small change to use variable instead of hard-coded xmlns Matthew Wild 2010-08-06
mod_bosh: Much improve session:close() for BOSH sessions, so it now matches in usage normal session:close() Matthew Wild 2010-08-06
mod_bosh: Add error callback for xmlhandlers, to handle the case of invalid or unusable XML in the request payload Matthew Wild 2010-08-06
mod_bosh: Remove dependency on eventmanager Matthew Wild 2010-08-03
mod_bosh: Add jabber:client namespace to stanzas with no namespace Matthew Wild 2010-07-04
mod_bosh: Re-layout session object creation to make lines shorter Matthew Wild 2010-05-21
mod_bosh: Add option consider_bosh_secure to treat BOSH sessions as encrypted even if they don't use HTTP (useful for when secure requests are proxied to Prosody over HTTP) Matthew Wild 2010-05-21
Merge with 0.6 Matthew Wild 2010-05-17
mod_bosh: Always give requests a destroy handler, so that the management of each session's request array and the inactive_sessions logic can happen in one place. Simplifies everything and concludes this series of BOSH fixes. Matthew Wild 2010-05-17
mod_bosh: Fix handling of rids by not dropping requests with repeated rids (assign them their sid instead), and always starting a session with first_rid-1. Matthew Wild 2010-05-17
mod_bosh: Remove some hacky code for pruning dead requests that hopefully never gets executed - if it does there's a bug anyway. Matthew Wild 2010-05-17
mod_bosh: Remove requests from the session table using table.remove(), prevents the possibility of holes in the array. Matthew Wild 2010-05-17
Merge 0.6->0.7 Matthew Wild 2010-04-03
mod_bosh: Default stanza namespace should be jabber:client (fixes BOSH to work with recent namespace fix) Matthew Wild 2010-04-03
Merge 0.6->0.7 Matthew Wild 2010-03-22
Update copyright headers for 2010 Matthew Wild 2010-03-22
mod_bosh: Fire stream-features event using new events API. Waqas Hussain 2010-02-11
mod_bosh: I == fail. Matthew Wild 2010-01-22
mod_bosh: Simplify cross-domain support, and make it work - default is for cross-domain to be disallowed Matthew Wild 2010-01-22
mod_bosh: Support for cross-domain access control using CORS Matthew Wild 2010-01-21
mod_bosh: Trailing whitespace Matthew Wild 2010-01-21
mod_bosh: Update for new xmlhandlers syntax Matthew Wild 2010-01-19
mod_bosh: Update for new connection API Matthew Wild 2009-12-17
mod_bosh: Delay setup until after server is started. Waqas Hussain 2009-12-10
mod_bosh: Don't log response XML Matthew Wild 2009-11-21
mod_bosh: Set session.ip for BOSH sessions. Waqas Hussain 2009-11-18
Changed separator between attribute names and prefixes from '|' to '\1' (optimization and cleanup). Waqas Hussain 2009-11-12
mod_bosh: Update to use new httpserver.new_from_config syntax Matthew Wild 2009-10-02
Merge with 0.5 Matthew Wild 2009-10-02
mod_bosh: Fix for 'invalid key to next' error when 2 clients lose connection at the same time Matthew Wild 2009-10-02
mod_bosh: Strip BOSH namespace from stanzas to allow for some clients which may send them without the correct xmlns Matthew Wild 2009-08-11
mod_bosh: Calculate rid difference just once Matthew Wild 2009-08-11
mod_bosh: Basic handling of rids (more to come) Matthew Wild 2009-08-11
mod_bosh: Correct reply when closing sessions Matthew Wild 2009-08-11
mod_bosh: Updated to use module:get_option instead of configmanager Waqas Hussain 2009-08-09
mod_bosh: Fix error reply for host-unknown errors Matthew Wild 2009-08-05
mod_bosh: Update to use new new_from_config() Matthew Wild 2009-07-14
mod_bosh: Mark a session as secure if it is created with HTTPS Matthew Wild 2009-07-12
mod_bosh: Use new httpserver helper to initialise ports Matthew Wild 2009-07-12
Add copyright header to those files missing one Matthew Wild 2009-07-10
Merge with 0.4 Matthew Wild 2009-05-04
mod_bosh: Give BOSH sessions a logger (thanks Florob) Matthew Wild 2009-05-04
Merge with 0.4 branch Matthew Wild 2009-04-23
mod_bosh: Put dummy authid in session creation response to keep JSJaC happy Matthew Wild 2009-04-23
mod_bosh: Add log message for clients connecting to unknown host Matthew Wild 2009-04-23
mod_bosh: Fix nil indexing when client connects to unknown host Matthew Wild 2009-04-23
mod_*: Fix a load of global accesses Matthew Wild 2009-04-22
mod_bosh: Fix to correctly timeout idle sessions Matthew Wild 2009-03-31
mod_bosh: Set Content-Type in response headers Matthew Wild 2009-03-03
mod_bosh: Possible fix for invalid key to next crash Matthew Wild 2009-02-18
mod_bosh: Fix for 'invalid key to next' error when using BOSH Matthew Wild 2009-02-09
Remove redundant logging and debug printing from mod_bosh Matthew Wild 2009-02-09
mod_bosh: No need to tostring() uuids now Matthew Wild 2009-02-01
Replacing pretty_print() with top_tag() for logging Matthew Wild 2009-01-16
BOSH: Allow BOSH servers to be configured through config file Matthew Wild 2009-01-13
BOSH: Make previous fix a bit more efficient Matthew Wild 2009-01-12
BOSH: Fix for error when closed session was in inactive_sessions list Matthew Wild 2009-01-12
Implement session:close() for BOSH, and add checking for attempts to connect to hosts we don't serve Matthew Wild 2009-01-09
Change default maximum inactivity period to 60s from 30s Matthew Wild 2009-01-09
Numerous BOSH improvements... handle client disconnects, either explicit or implicit through inactivity; allow specifying BOSH default parameters through config; fix to prevent prematurely closing request connections in some cases, before they were replied to Matthew Wild 2009-01-09
Remove some old debugging code from mod_bosh Matthew Wild 2008-12-27
Initial mod_bosh, works, kind of, but quite incomplete Matthew Wild 2008-12-22