Commit Graph

58 Commits (41d45e0c64b94de227f048d5f376699dd6041735)

Author SHA1 Message Date
Matthew Wild a7048b7c93 mod_bosh: Re-layout session object creation to make lines shorter 16 years ago
Matthew Wild d20a2a83c7 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) 16 years ago
Matthew Wild 95e01d796f 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. 16 years ago
Matthew Wild 2eb914de98 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. 16 years ago
Matthew Wild 91492c1a60 mod_bosh: Remove some hacky code for pruning dead requests that hopefully never gets executed - if it does there's a bug anyway. 16 years ago
Matthew Wild a36bf4db9b mod_bosh: Remove requests from the session table using table.remove(), prevents the possibility of holes in the array. 16 years ago
Matthew Wild 64991c424d mod_bosh: Default stanza namespace should be jabber:client (fixes BOSH to work with recent namespace fix) 16 years ago
Matthew Wild 2bc0606453 Update copyright headers for 2010 16 years ago
Waqas Hussain ffc968aae4 mod_bosh: Fire stream-features event using new events API. 16 years ago
Matthew Wild 6f7eb9676e mod_bosh: I == fail. 16 years ago
Matthew Wild bf86bf5242 mod_bosh: Simplify cross-domain support, and make it work - default is for cross-domain to be disallowed 16 years ago
Matthew Wild a308952de6 mod_bosh: Support for cross-domain access control using CORS 16 years ago
Matthew Wild c7c7a84ff8 mod_bosh: Trailing whitespace 16 years ago
Matthew Wild 81222a41d4 mod_bosh: Update for new xmlhandlers syntax 16 years ago
Matthew Wild 68bacb8be1 mod_bosh: Update for new connection API 16 years ago
Waqas Hussain 3d65df61e3 mod_bosh: Delay setup until after server is started. 16 years ago
Matthew Wild 49d04cec1d mod_bosh: Don't log response XML 16 years ago
Matthew Wild 0a97fad81f mod_bosh: Don't log response XML 16 years ago
Waqas Hussain 09a6ddbe28 mod_bosh: Set session.ip for BOSH sessions. 16 years ago
Waqas Hussain 316bc45e71 Changed separator between attribute names and prefixes from '|' to '\1' (optimization and cleanup). 16 years ago
Matthew Wild 0c362cbf8d mod_bosh: Update to use new httpserver.new_from_config syntax 16 years ago
Matthew Wild 26b86f46a9 mod_bosh: Fix for 'invalid key to next' error when 2 clients lose connection at the same time 16 years ago
Matthew Wild 928fb0e2e2 mod_bosh: Strip BOSH namespace from stanzas to allow for some clients which may send them without the correct xmlns 17 years ago
Matthew Wild 041a1ee396 mod_bosh: Calculate rid difference just once 17 years ago
Matthew Wild fdf0b9db40 mod_bosh: Basic handling of rids (more to come) 17 years ago
Matthew Wild d1a1b9e6d4 mod_bosh: Correct reply when closing sessions 17 years ago
Waqas Hussain 9af3cc0912 mod_bosh: Updated to use module:get_option instead of configmanager 17 years ago
Matthew Wild fef360b4dd mod_bosh: Fix error reply for host-unknown errors 17 years ago
Matthew Wild f498cea754 mod_bosh: Update to use new new_from_config() 17 years ago
Matthew Wild f0ac98b789 mod_bosh: Mark a session as secure if it is created with HTTPS 17 years ago
Matthew Wild ca69ee8922 mod_bosh: Use new httpserver helper to initialise ports 17 years ago
Matthew Wild e45610ce6e Add copyright header to those files missing one 17 years ago
Matthew Wild 28ae0dd2a9 mod_bosh: Put dummy authid in session creation response to keep JSJaC happy 17 years ago
Matthew Wild 7b9daba98a mod_bosh: Add log message for clients connecting to unknown host 17 years ago
Matthew Wild 850e8c18b0 mod_bosh: Fix nil indexing when client connects to unknown host 17 years ago
Matthew Wild ca9a9eb85e mod_*: Fix a load of global accesses 17 years ago
Matthew Wild 42d08e3e93 mod_bosh: Give BOSH sessions a logger (thanks Florob) 17 years ago
Matthew Wild be7514d447 mod_bosh: Fix to correctly timeout idle sessions 17 years ago
Matthew Wild 0790a8d43e mod_bosh: Set Content-Type in response headers 17 years ago
Matthew Wild 8433494e21 mod_bosh: Possible fix for invalid key to next crash 17 years ago
Matthew Wild 3fc972b6c2 mod_bosh: Fix for 'invalid key to next' error when using BOSH 17 years ago
Matthew Wild 80a1fa8fa4 Remove redundant logging and debug printing from mod_bosh 17 years ago
Matthew Wild 9d01e12f12 mod_bosh: No need to tostring() uuids now 17 years ago
Matthew Wild 69bededafc Replacing pretty_print() with top_tag() for logging 17 years ago
Matthew Wild 8b979ccaf4 BOSH: Allow BOSH servers to be configured through config file 17 years ago
Matthew Wild 7583e84ee1 BOSH: Make previous fix a bit more efficient 17 years ago
Matthew Wild f5412a5f91 BOSH: Fix for error when closed session was in inactive_sessions list 17 years ago
Matthew Wild bd17ed3f7d Implement session:close() for BOSH, and add checking for attempts to connect to hosts we don't serve 17 years ago
Matthew Wild bc31c214d8 Change default maximum inactivity period to 60s from 30s 17 years ago
Matthew Wild fb680dde0c 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 17 years ago