Commit Graph

135 Commits (51549fe050a1aec00284d1e2599c93010bc763c2)

Author SHA1 Message Date
Florian Zeitz 1d833bb807 Remove all trailing whitespace 13 years ago
Matthew Wild cab180216b 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 b4da24a9cb 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 28d174b045 mod_bosh: Only pass stanza to core_process_stanza if it wasn't dropped by filters 13 years ago
Waqas Hussain 87170a4fde mod_bosh: Reduce a little code. 13 years ago
Matthew Wild 38e6533cbd mod_bosh: Make waiting_requests and dead_sessions shared to preserve across reloads 13 years ago
Waqas Hussain 6716198660 mod_bosh: Don't tostring() stream:features when passing to session.send(). 13 years ago
Waqas Hussain 8e44ad94a9 mod_bosh: Only return CORS headers if the Origin header is received, and CORS is enabled. 13 years ago
Waqas Hussain a22bd3606b mod_bosh: Return empty string from the OPTIONS event handler, don't return the response object itself. 13 years ago
Waqas Hussain e3784f09b9 mod_bosh: Rename event handler argument to event, not request. 13 years ago
Matthew Wild d06cad4628 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 2d2b6df7cb mod_bosh: Remove another place we set headers, fixes #348 13 years ago
Matthew Wild 70b2041049 mod_bosh: Clean up handling of response headers, set them only in one place 13 years ago
Matthew Wild b174c0dba2 mod_bosh: Return errors when appropriate (invalid XML, missing sid) 13 years ago
Matthew Wild 885b4a7e2a mod_bosh: Remove some very verbose logging 13 years ago
Matthew Wild 9c877dbe93 mod_bosh: Reset creating_session to prevent putting unnecessary attributes into every BOSH response 13 years ago
Kim Alvefur 280227fdb2 mod_bosh: Fix traceback in case session is destroyed during the stream-features event (thanks Biszkopcik) 13 years ago
Matthew Wild de91cf38b1 mod_bosh: rename variable for clarity 13 years ago
Matthew Wild aa2c7c578a mod_bosh: Some very minor whitespace/layout fixes 13 years ago
Matthew Wild ed5d3365b4 mod_bosh: Remove Connection: keep-alive header (conflicts with new net.http.server) 13 years ago
Matthew Wild 6155cd122a mod_bosh: Fix global write 13 years ago
Matthew Wild 295705fa8f mod_bosh: Add 'Connection: keep-alive' header 13 years ago
Matthew Wild 286a40227e mod_bosh: Add support for stanza filters to BOSH sessions (needed by some plugins) 13 years ago
Matthew Wild 561e15e58e 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 b466f525b0 mod_bosh: Share sessions and inactive_sessions tables 13 years ago
Matthew Wild 05ea6e6798 mod_bosh: Remove redundant code (send stream features in only one place) (thanks Zash) 14 years ago
Matthew Wild 41be7b5569 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 a32fb90be6 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 96fba97cf3 mod_bosh: Backout revision bc0a68cae236 (experimental bosh_auto_cork option) as I don't believe it works 14 years ago
Kim Alvefur 9114e88ee0 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
Kim Alvefur 6794744053 mod_bosh: Use new format for headers when checking for proxies to get the originating IP 14 years ago
Matthew Wild 1c363caf5d mod_bosh: Set Content-Type to text/html for GET response (thanks Medics) 14 years ago
Matthew Wild 5b1691012f mod_bosh: Remove unused send_buffer variable 14 years ago
Matthew Wild 5f2142959c mod_bosh: Fix request/response mixup 14 years ago
Matthew Wild 1c5625ca7d mod_bosh: Remove unused import of util.timer 14 years ago
Matthew Wild 568e94ab15 mod_bosh: Remove unused import of net.httpserver 14 years ago
Matthew Wild ff9ffc2351 mod_bosh: Add routes without trailing-'/', so that both /http-bind and /http-bind/ work again 14 years ago
Matthew Wild fbbc658469 mod_bosh: Update informational message on GET 14 years ago
Matthew Wild 7a7b03129d mod_bosh: Large commit to update to mod_http/net.http.server APIs. Becomes a shared module. 14 years ago
Matthew Wild 7510803cce mod_bosh: Optimisation, store reply_before value as waiting_requests value (saves a lookup) 14 years ago
Matthew Wild 01fbb05094 mod_bosh: Log error on BOSH parse failure (thanks daurnimator) 14 years ago
Kim Alvefur 3c2e464d58 mod_posix, mod_bosh, mod_admin_telnet: Use module:set_global() 14 years ago
Waqas Hussain e246f6a8d7 mod_bosh: Remove unused reference to lxp 14 years ago
Waqas Hussain 9e2f76f84b mod_bosh: Fixed use of a private HTTP request property. 14 years ago
Matthew Wild b212e28356 mod_bosh: Experimental option 'bosh_auto_cork' which witholds any response to a request until all stanzas in it have been processed. 14 years ago
Matthew Wild 65e0b32a7e mod_bosh: Move stream:features sending until after the current request has been added to session.requests. Ensures correct inactivity logic. 14 years ago
Matthew Wild d968e72bfb mod_bosh: Remove a session from inactive_sessions before destroying it 14 years ago
Matthew Wild 6f147fde17 mod_bosh: Store time to destroy session in inactive_sessions, removing dependency on session.bosh_max_inactive in cleanup timer 14 years ago
Matthew Wild ac213cfcdd mod_bosh: s/xmlns:streams/xmlns:stream/ - fixes #265 (thanks Tim) 15 years ago
Matthew Wild d4b99e90cf mod_bosh: Update to use typed variants of module:get_option(), makes it more tolerant to config variations and simplifies the code. 15 years ago