Log

plugins/mod_bosh.lua @ 6269:f89d2dec2977

description author age
Remove all trailing whitespace Florian Zeitz Fri, 09 Aug 2013 17:48:21 +0200
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 Mon, 15 Jul 2013 11:44:49 +0100
Merge 0.9->trunk Matthew Wild Tue, 09 Jul 2013 00:04:30 +0100
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 Mon, 08 Jul 2013 23:59:27 +0100
mod_bosh: Only pass stanza to core_process_stanza if it wasn't dropped by filters Matthew Wild Mon, 08 Jul 2013 23:42:54 +0100
Merge 0.9->trunk Matthew Wild Tue, 11 Jun 2013 21:50:41 +0100
mod_bosh: Remove Connection: keep-alive header (conflicts with new net.http.server) Matthew Wild Fri, 07 Jun 2013 17:47:49 +0100
mod_bosh: Fix global write Matthew Wild Fri, 07 Jun 2013 17:47:27 +0100
mod_bosh: Reduce a little code. Waqas Hussain Tue, 11 Jun 2013 12:55:47 -0400
mod_bosh: Make waiting_requests and dead_sessions shared to preserve across reloads Matthew Wild Sat, 08 Jun 2013 18:08:18 +0100
mod_bosh: Don't tostring() stream:features when passing to session.send(). Waqas Hussain Fri, 07 Jun 2013 16:26:08 -0400
mod_bosh: Only return CORS headers if the Origin header is received, and CORS is enabled. Waqas Hussain Fri, 07 Jun 2013 14:20:13 -0400
mod_bosh: Return empty string from the OPTIONS event handler, don't return the response object itself. Waqas Hussain Fri, 07 Jun 2013 13:24:56 -0400
mod_bosh: Rename event handler argument to event, not request. Waqas Hussain Fri, 07 Jun 2013 13:21:38 -0400
Merge 0.9->trunk Matthew Wild Fri, 07 Jun 2013 13:23:04 +0100
mod_bosh: Remove logging of request.id, it doesn't exist in the new HTTP server API (thanks Mikael Nordfeldth) Matthew Wild Fri, 07 Jun 2013 13:22:13 +0100
mod_bosh: Remove another place we set headers, fixes #348 Matthew Wild Thu, 06 Jun 2013 14:48:41 +0100
mod_bosh: Clean up handling of response headers, set them only in one place Matthew Wild Wed, 05 Jun 2013 21:41:27 +0100
mod_bosh: Return errors when appropriate (invalid XML, missing sid) Matthew Wild Wed, 05 Jun 2013 21:39:56 +0100
mod_bosh: Remove some very verbose logging Matthew Wild Wed, 05 Jun 2013 21:37:33 +0100
Merge 0.9->trunk Matthew Wild Wed, 05 Jun 2013 21:36:29 +0100
mod_bosh: Reset creating_session to prevent putting unnecessary attributes into every BOSH response Matthew Wild Wed, 05 Jun 2013 21:35:50 +0100
Merge 0.9->trunk Kim Alvefur Sun, 02 Jun 2013 19:27:45 +0200
mod_bosh: Fix traceback in case session is destroyed during the stream-features event (thanks Biszkopcik) Kim Alvefur Sun, 02 Jun 2013 19:25:53 +0200
mod_bosh: rename variable for clarity Matthew Wild Fri, 24 May 2013 18:38:36 +0100
mod_bosh: Some very minor whitespace/layout fixes Matthew Wild Fri, 24 May 2013 18:37:07 +0100
mod_bosh: Add 'Connection: keep-alive' header Matthew Wild Thu, 22 Nov 2012 19:37:30 +0000
mod_bosh: Add support for stanza filters to BOSH sessions (needed by some plugins) Matthew Wild Thu, 22 Nov 2012 19:35:50 +0000
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 Thu, 22 Nov 2012 18:24:09 +0000
mod_bosh: Share sessions and inactive_sessions tables Matthew Wild Thu, 15 Nov 2012 13:18:41 -0500
mod_bosh: Remove redundant code (send stream features in only one place) (thanks Zash) Matthew Wild Wed, 01 Aug 2012 01:03:53 +0100
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 Wed, 01 Aug 2012 00:39:54 +0100
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 Sun, 29 Jul 2012 01:56:45 +0100
mod_bosh: Backout revision bc0a68cae236 (experimental bosh_auto_cork option) as I don't believe it works Matthew Wild Sat, 28 Jul 2012 18:50:04 +0100
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 Thu, 26 Jul 2012 04:33:17 +0200
mod_bosh: Use new format for headers when checking for proxies to get the originating IP Kim Alvefur Mon, 23 Jul 2012 23:05:32 +0200
mod_bosh: Set Content-Type to text/html for GET response (thanks Medics) Matthew Wild Tue, 15 May 2012 13:35:09 +0100
mod_bosh: Remove unused send_buffer variable Matthew Wild Sat, 28 Apr 2012 14:03:39 +0100
mod_bosh: Fix request/response mixup Matthew Wild Sat, 28 Apr 2012 13:58:37 +0100
mod_bosh: Remove unused import of util.timer Matthew Wild Sat, 28 Apr 2012 13:58:13 +0100
mod_bosh: Remove unused import of net.httpserver Matthew Wild Sat, 28 Apr 2012 00:45:33 +0100
mod_bosh: Add routes without trailing-'/', so that both /http-bind and /http-bind/ work again Matthew Wild Fri, 27 Apr 2012 19:05:03 +0100
mod_bosh: Update informational message on GET Matthew Wild Thu, 26 Apr 2012 05:56:24 +0100
mod_bosh: Large commit to update to mod_http/net.http.server APIs. Becomes a shared module. Matthew Wild Wed, 25 Apr 2012 23:10:32 +0100
mod_bosh: Optimisation, store reply_before value as waiting_requests value (saves a lookup) Matthew Wild Wed, 25 Apr 2012 19:57:46 +0100
Merge timber->trunk - thanks everyone! Matthew Wild Tue, 24 Apr 2012 21:59:20 +0100
mod_posix, mod_bosh, mod_admin_telnet: Use module:set_global() Kim Alvefur Thu, 15 Mar 2012 14:47:46 +0100
Merge with 0.9 Matthew Wild Thu, 19 Apr 2012 19:35:10 +0100
mod_bosh: Log error on BOSH parse failure (thanks daurnimator) Matthew Wild Thu, 19 Apr 2012 19:30:47 +0100
mod_bosh: Remove unused reference to lxp Waqas Hussain Wed, 14 Dec 2011 06:42:23 +0500
mod_bosh: Fixed use of a private HTTP request property. Waqas Hussain Fri, 09 Dec 2011 11:44:00 +0500
mod_bosh: Experimental option 'bosh_auto_cork' which witholds any response to a request until all stanzas in it have been processed. Matthew Wild Wed, 07 Dec 2011 05:54:17 +0000
mod_bosh: Move stream:features sending until after the current request has been added to session.requests. Ensures correct inactivity logic. Matthew Wild Wed, 07 Dec 2011 04:57:51 +0000
mod_bosh: Remove a session from inactive_sessions before destroying it Matthew Wild Wed, 07 Dec 2011 03:54:28 +0000
mod_bosh: Store time to destroy session in inactive_sessions, removing dependency on session.bosh_max_inactive in cleanup timer Matthew Wild Wed, 07 Dec 2011 02:58:22 +0000
mod_bosh: s/xmlns:streams/xmlns:stream/ - fixes #265 (thanks Tim) Matthew Wild Thu, 15 Sep 2011 17:38:24 +0100
mod_bosh: Update to use typed variants of module:get_option(), makes it more tolerant to config variations and simplifies the code. Matthew Wild Wed, 20 Jul 2011 17:22:21 -0400
mod_bosh: Fix logging when no sid present, fix a missing semi-colon, avoid an extra useless table lookup (thanks Thomas) Matthew Wild Tue, 28 Jun 2011 17:00:50 +0100
Merge 0.8->trunk Matthew Wild Tue, 07 Jun 2011 01:29:34 +0100
Backout commit d6366294f618 which I was testing and didn't mean to push to 0.8 Matthew Wild Sun, 05 Jun 2011 12:28:49 +0100
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 Fri, 04 Mar 2011 20:27:57 +0000
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 Sun, 05 Jun 2011 11:48:57 +0100
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 Fri, 04 Mar 2011 20:27:57 +0000
mod_bosh: Return true from send() Matthew Wild Sat, 08 Jan 2011 23:20:16 +0000
mod_bosh: Fix for miscalculating inactivity, causing disconnects under a steady stream of traffic Matthew Wild Tue, 04 Jan 2011 21:38:14 +0000
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 Sat, 11 Dec 2010 00:19:15 +0000
mod_bosh: Switch to util.xmppstream from xmlhandlers Matthew Wild Tue, 07 Dec 2010 18:38:22 +0000
mod_bosh: Use util.timer for timers instead of server.addtimer. Waqas Hussain Thu, 02 Dec 2010 22:47:29 +0500
mod_bosh: Don't add a Content-Type header to the HTTP OPTIONS reply. Waqas Hussain Fri, 22 Oct 2010 08:36:54 +0500
mod_bosh: Fix traceback when initiating a BOSH session to an unknown host Matthew Wild Fri, 10 Sep 2010 17:56:24 +0100
mod_bosh: Support for reading the client's real IP through HTTP proxies from X-Forwarded-For Matthew Wild Sat, 28 Aug 2010 22:25:12 +0100
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 Sun, 22 Aug 2010 21:36:04 +0100
mod_bosh: Fix to properly ignore repeated requests Matthew Wild Sat, 07 Aug 2010 19:00:04 +0100
mod_bosh: Small change to use variable instead of hard-coded xmlns Matthew Wild Fri, 06 Aug 2010 02:00:12 +0100
mod_bosh: Much improve session:close() for BOSH sessions, so it now matches in usage normal session:close() Matthew Wild Fri, 06 Aug 2010 01:59:43 +0100
mod_bosh: Add error callback for xmlhandlers, to handle the case of invalid or unusable XML in the request payload Matthew Wild Fri, 06 Aug 2010 01:57:20 +0100
mod_bosh: Remove dependency on eventmanager Matthew Wild Tue, 03 Aug 2010 11:01:13 +0100
mod_bosh: Add jabber:client namespace to stanzas with no namespace Matthew Wild Sun, 04 Jul 2010 19:38:33 +0100
mod_bosh: Re-layout session object creation to make lines shorter Matthew Wild Fri, 21 May 2010 19:27:06 +0100
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 Fri, 21 May 2010 19:24:50 +0100
Merge with 0.6 Matthew Wild Mon, 17 May 2010 11:56:36 +0100
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 Mon, 17 May 2010 11:49:24 +0100
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 Mon, 17 May 2010 11:46:54 +0100
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 Mon, 17 May 2010 11:45:11 +0100
mod_bosh: Remove requests from the session table using table.remove(), prevents the possibility of holes in the array. Matthew Wild Mon, 17 May 2010 11:42:53 +0100
Merge 0.6->0.7 Matthew Wild Sat, 03 Apr 2010 23:09:11 +0100
mod_bosh: Default stanza namespace should be jabber:client (fixes BOSH to work with recent namespace fix) Matthew Wild Sat, 03 Apr 2010 22:24:39 +0100
Merge 0.6->0.7 Matthew Wild Mon, 22 Mar 2010 17:24:55 +0000
Update copyright headers for 2010 Matthew Wild Mon, 22 Mar 2010 17:06:15 +0000
mod_bosh: Fire stream-features event using new events API. Waqas Hussain Fri, 12 Feb 2010 04:11:50 +0500
mod_bosh: I == fail. Matthew Wild Fri, 22 Jan 2010 03:36:03 +0000
mod_bosh: Simplify cross-domain support, and make it work - default is for cross-domain to be disallowed Matthew Wild Fri, 22 Jan 2010 03:18:55 +0000
mod_bosh: Support for cross-domain access control using CORS Matthew Wild Thu, 21 Jan 2010 15:07:52 +0000
mod_bosh: Trailing whitespace Matthew Wild Thu, 21 Jan 2010 00:35:07 +0000
mod_bosh: Update for new xmlhandlers syntax Matthew Wild Tue, 19 Jan 2010 03:57:19 +0000
mod_bosh: Update for new connection API Matthew Wild Thu, 17 Dec 2009 20:28:32 +0000
mod_bosh: Delay setup until after server is started. Waqas Hussain Thu, 10 Dec 2009 16:21:06 +0500
mod_bosh: Don't log response XML Matthew Wild Sat, 21 Nov 2009 13:15:46 +0000
mod_bosh: Set session.ip for BOSH sessions. Waqas Hussain Wed, 18 Nov 2009 06:22:52 +0500
Changed separator between attribute names and prefixes from '|' to '\1' (optimization and cleanup). Waqas Hussain Thu, 12 Nov 2009 13:42:44 +0500
mod_bosh: Update to use new httpserver.new_from_config syntax Matthew Wild Sat, 03 Oct 2009 00:56:45 +0100
Merge with 0.5 Matthew Wild Fri, 02 Oct 2009 21:24:16 +0100
mod_bosh: Fix for 'invalid key to next' error when 2 clients lose connection at the same time Matthew Wild Fri, 02 Oct 2009 21:23:32 +0100
mod_bosh: Strip BOSH namespace from stanzas to allow for some clients which may send them without the correct xmlns Matthew Wild Tue, 11 Aug 2009 20:38:48 +0100
mod_bosh: Calculate rid difference just once Matthew Wild Tue, 11 Aug 2009 20:15:54 +0100
mod_bosh: Basic handling of rids (more to come) Matthew Wild Tue, 11 Aug 2009 19:52:09 +0100
mod_bosh: Correct reply when closing sessions Matthew Wild Tue, 11 Aug 2009 19:48:41 +0100
mod_bosh: Updated to use module:get_option instead of configmanager Waqas Hussain Sun, 09 Aug 2009 17:47:26 +0500
mod_bosh: Fix error reply for host-unknown errors Matthew Wild Wed, 05 Aug 2009 03:08:21 +0100
mod_bosh: Update to use new new_from_config() Matthew Wild Tue, 14 Jul 2009 21:04:07 +0100
mod_bosh: Mark a session as secure if it is created with HTTPS Matthew Wild Sun, 12 Jul 2009 19:16:37 +0100
mod_bosh: Use new httpserver helper to initialise ports Matthew Wild Sun, 12 Jul 2009 15:21:10 +0100
Add copyright header to those files missing one Matthew Wild Fri, 10 Jul 2009 03:08:38 +0100
Merge with 0.4 Matthew Wild Mon, 04 May 2009 19:57:05 +0100
mod_bosh: Give BOSH sessions a logger (thanks Florob) Matthew Wild Mon, 04 May 2009 19:38:21 +0100
Merge with 0.4 branch Matthew Wild Thu, 23 Apr 2009 03:28:35 +0100
mod_bosh: Put dummy authid in session creation response to keep JSJaC happy Matthew Wild Thu, 23 Apr 2009 03:27:22 +0100
mod_bosh: Add log message for clients connecting to unknown host Matthew Wild Thu, 23 Apr 2009 03:25:48 +0100
mod_bosh: Fix nil indexing when client connects to unknown host Matthew Wild Thu, 23 Apr 2009 03:25:11 +0100
mod_*: Fix a load of global accesses Matthew Wild Wed, 22 Apr 2009 21:32:23 +0100