Commit Graph

156 Commits (0ff1619ea4e2a6702a3fb70135fb656efd64790b)

Author SHA1 Message Date
Kim Alvefur 996ff6d541 mod_bosh: Store the normalized hostname on session (fixes #1151) 8 years ago
Kim Alvefur ac8f0e795f mod_bosh: Update session.conn to point to the current connection (fixes #890) 9 years ago
Emmanuel Gil Peyrot 2398e05edf mod_bosh: Add ::1 to the default trusted_proxies. 9 years ago
Sam Whited 8460485ee0 mod_bosh: Save last response in case retransmission is required 9 years ago
Matthew Wild d5278ce2fc mod_bosh: Make 'hold' and 'requests' fixed to '1' and '2' respectively, as this is what all implementations realistically use 9 years ago
Matthew Wild a79e50f4f7 mod_bosh: Log when a stanza isn't handled because we can't find a session for it 9 years ago
Matthew Wild cef65929df mod_bosh: Correctly handle requests arriving out of order (thanks Jitsi folk!) 9 years ago
Kim Alvefur ad3f7a961c mod_bosh: Don't decrement rid twice (thanks av6) 10 years ago
Kim Alvefur 75be55d7bd mod_bosh: Reject fractional 'wait' (See #343) 10 years ago
Kim Alvefur 14f2a5d089 mod_bosh: Return a proper BOSH error response from XML parse error callback (see #343) 10 years ago
Kim Alvefur 354f33a769 mod_bosh: Validate that 'sid' and 'wait' have sane values (fixes #475, also see #343) 10 years ago
Kim Alvefur 4de7923fba mod_bosh: Validate 'to' host (see #343) 10 years ago
Kim Alvefur 9cf04c820a mod_bosh: Return a proper BOSH error response instead of deprecated(?) status code (See #343) 10 years ago
Kim Alvefur 4fea560fa7 mod_bosh: Log error returned from stream:feed() 10 years ago
Kim Alvefur a98e974504 mod_bosh: Return if a response has been sent already (See #343) 10 years ago
Kim Alvefur 637f02f551 mod_bosh: Remove unused import 10 years ago
Kim Alvefur 72ec06240f mod_bosh: Skip sending stanzas removed out by filters (fixes #657) 10 years ago
Kim Alvefur a3a7f99ad4 Backed out BOSH use of util.async (changeset f0687c313cf1) 10 years ago
Matthew Wild 768cef78e2 mod_bosh: Fire event when BOSH session is created 10 years ago
Kim Alvefur 90579a109a mod_bosh: Use util.async 11 years ago
Florian Zeitz 4b618a8727 Remove all trailing whitespace 13 years ago
Matthew Wild 2cdcc29777 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) 13 years ago
Matthew Wild a4338c0744 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). 13 years ago
Matthew Wild 486d601ff5 mod_bosh: Only pass stanza to core_process_stanza if it wasn't dropped by filters 13 years ago
Waqas Hussain 296d4f627c mod_bosh: Reduce a little code. 13 years ago
Matthew Wild db42f4e220 mod_bosh: Make waiting_requests and dead_sessions shared to preserve across reloads 13 years ago
Waqas Hussain 45a8840943 mod_bosh: Don't tostring() stream:features when passing to session.send(). 13 years ago
Waqas Hussain d826b6cebb mod_bosh: Only return CORS headers if the Origin header is received, and CORS is enabled. 13 years ago
Waqas Hussain 6dba024252 mod_bosh: Return empty string from the OPTIONS event handler, don't return the response object itself. 13 years ago
Waqas Hussain 71519fd592 mod_bosh: Rename event handler argument to event, not request. 13 years ago
Matthew Wild 3d65d794a0 mod_bosh: Remove logging of request.id, it doesn't exist in the new HTTP server API (thanks Mikael Nordfeldth) 13 years ago
Matthew Wild 94cef42f72 mod_bosh: Remove another place we set headers, fixes #348 13 years ago
Matthew Wild 47c740cdd7 mod_bosh: Clean up handling of response headers, set them only in one place 13 years ago
Matthew Wild 74422d8da1 mod_bosh: Return errors when appropriate (invalid XML, missing sid) 13 years ago
Matthew Wild 0b1db0e26a mod_bosh: Remove some very verbose logging 13 years ago
Matthew Wild 83eae5c866 mod_bosh: Reset creating_session to prevent putting unnecessary attributes into every BOSH response 13 years ago
Kim Alvefur 323d7007f6 mod_bosh: Fix traceback in case session is destroyed during the stream-features event (thanks Biszkopcik) 13 years ago
Matthew Wild 4261dc5e76 mod_bosh: rename variable for clarity 13 years ago
Matthew Wild 44c6dd6c7a mod_bosh: Some very minor whitespace/layout fixes 13 years ago
Matthew Wild e4a0174799 mod_bosh: Remove Connection: keep-alive header (conflicts with new net.http.server) 13 years ago
Matthew Wild 6067287d2a mod_bosh: Fix global write 13 years ago
Matthew Wild 731c5f5cb7 mod_bosh: Add 'Connection: keep-alive' header 13 years ago
Matthew Wild c1716e5188 mod_bosh: Add support for stanza filters to BOSH sessions (needed by some plugins) 13 years ago
Matthew Wild 4f5a4b33d3 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 13 years ago
Matthew Wild 66753afccc mod_bosh: Share sessions and inactive_sessions tables 13 years ago
Matthew Wild 2265188fcc mod_bosh: Remove redundant code (send stream features in only one place) (thanks Zash) 14 years ago
Matthew Wild 6550cf81a2 mod_bosh: Remove troublesome return... continue processing of the streamopen after session creation (because since 16c7b510694b we no longer send an early response) 14 years ago
Matthew Wild f458329061 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. 14 years ago
Matthew Wild 655defbb53 mod_bosh: Backout revision bc0a68cae236 (experimental bosh_auto_cork option) as I don't believe it works 14 years ago
Kim Alvefur 790e0bb9b4 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. 14 years ago