Commit graph

135 commits

Author SHA1 Message Date
Florian Zeitz
1d833bb807 Remove all trailing whitespace 2013-08-09 17:48:21 +02:00
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) 2013-07-15 11:44:49 +01:00
Matthew Wild
b5ccfb0d78 Merge 0.9->trunk 2013-07-09 00:04:30 +01:00
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). 2013-07-08 23:59:27 +01:00
Matthew Wild
28d174b045 mod_bosh: Only pass stanza to core_process_stanza if it wasn't dropped by filters 2013-07-08 23:42:54 +01:00
Waqas Hussain
87170a4fde mod_bosh: Reduce a little code. 2013-06-11 12:55:47 -04:00
Matthew Wild
38e6533cbd mod_bosh: Make waiting_requests and dead_sessions shared to preserve across reloads 2013-06-08 18:08:18 +01:00
Waqas Hussain
6716198660 mod_bosh: Don't tostring() stream:features when passing to session.send(). 2013-06-07 16:26:08 -04:00
Waqas Hussain
8e44ad94a9 mod_bosh: Only return CORS headers if the Origin header is received, and CORS is enabled. 2013-06-07 14:20:13 -04:00
Waqas Hussain
a22bd3606b mod_bosh: Return empty string from the OPTIONS event handler, don't return the response object itself. 2013-06-07 13:24:56 -04:00
Waqas Hussain
e3784f09b9 mod_bosh: Rename event handler argument to event, not request. 2013-06-07 13:21:38 -04:00
Matthew Wild
19c28421ef Merge 0.9->trunk 2013-06-07 13:23:04 +01:00
Matthew Wild
d06cad4628 mod_bosh: Remove logging of request.id, it doesn't exist in the new HTTP server API (thanks Mikael Nordfeldth) 2013-06-07 13:22:13 +01:00
Matthew Wild
2d2b6df7cb mod_bosh: Remove another place we set headers, fixes #348 2013-06-06 14:48:41 +01:00
Matthew Wild
70b2041049 mod_bosh: Clean up handling of response headers, set them only in one place 2013-06-05 21:41:27 +01:00
Matthew Wild
b174c0dba2 mod_bosh: Return errors when appropriate (invalid XML, missing sid) 2013-06-05 21:39:56 +01:00
Matthew Wild
885b4a7e2a mod_bosh: Remove some very verbose logging 2013-06-05 21:37:33 +01:00
Matthew Wild
a4eb37148c Merge 0.9->trunk 2013-06-05 21:36:29 +01:00
Matthew Wild
9c877dbe93 mod_bosh: Reset creating_session to prevent putting unnecessary attributes into every BOSH response 2013-06-05 21:35:50 +01:00
Kim Alvefur
906209db71 Merge 0.9->trunk 2013-06-02 19:27:45 +02:00
Kim Alvefur
280227fdb2 mod_bosh: Fix traceback in case session is destroyed during the stream-features event (thanks Biszkopcik) 2013-06-02 19:25:53 +02:00
Matthew Wild
de91cf38b1 mod_bosh: rename variable for clarity 2013-05-24 18:38:36 +01:00
Matthew Wild
aa2c7c578a mod_bosh: Some very minor whitespace/layout fixes 2013-05-24 18:37:07 +01:00
Matthew Wild
ed5d3365b4 mod_bosh: Remove Connection: keep-alive header (conflicts with new net.http.server) 2013-06-07 17:47:49 +01:00
Matthew Wild
6155cd122a mod_bosh: Fix global write 2013-06-07 17:47:27 +01:00
Matthew Wild
295705fa8f mod_bosh: Add 'Connection: keep-alive' header 2012-11-22 19:37:30 +00:00
Matthew Wild
286a40227e mod_bosh: Add support for stanza filters to BOSH sessions (needed by some plugins) 2012-11-22 19:35:50 +00:00
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 2012-11-22 18:24:09 +00:00
Matthew Wild
b466f525b0 mod_bosh: Share sessions and inactive_sessions tables 2012-11-15 13:18:41 -05:00
Matthew Wild
05ea6e6798 mod_bosh: Remove redundant code (send stream features in only one place) (thanks Zash) 2012-08-01 01:03:53 +01:00
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) 2012-08-01 00:39:54 +01:00
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. 2012-07-29 01:56:45 +01:00
Matthew Wild
96fba97cf3 mod_bosh: Backout revision bc0a68cae236 (experimental bosh_auto_cork option) as I don't believe it works 2012-07-28 18:50:04 +01:00
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. 2012-07-26 04:33:17 +02:00
Kim Alvefur
6794744053 mod_bosh: Use new format for headers when checking for proxies to get the originating IP 2012-07-23 23:05:32 +02:00
Matthew Wild
1c363caf5d mod_bosh: Set Content-Type to text/html for GET response (thanks Medics) 2012-05-15 13:35:09 +01:00
Matthew Wild
5b1691012f mod_bosh: Remove unused send_buffer variable 2012-04-28 14:03:39 +01:00
Matthew Wild
5f2142959c mod_bosh: Fix request/response mixup 2012-04-28 13:58:37 +01:00
Matthew Wild
1c5625ca7d mod_bosh: Remove unused import of util.timer 2012-04-28 13:58:13 +01:00
Matthew Wild
568e94ab15 mod_bosh: Remove unused import of net.httpserver 2012-04-28 00:45:33 +01:00
Matthew Wild
ff9ffc2351 mod_bosh: Add routes without trailing-'/', so that both /http-bind and /http-bind/ work again 2012-04-27 19:05:03 +01:00
Matthew Wild
fbbc658469 mod_bosh: Update informational message on GET 2012-04-26 05:56:24 +01:00
Matthew Wild
7a7b03129d mod_bosh: Large commit to update to mod_http/net.http.server APIs. Becomes a shared module. 2012-04-25 23:10:32 +01:00
Matthew Wild
7510803cce mod_bosh: Optimisation, store reply_before value as waiting_requests value (saves a lookup) 2012-04-25 19:57:46 +01:00
Matthew Wild
15175bb828 Merge timber->trunk - thanks everyone! 2012-04-24 21:59:20 +01:00
Matthew Wild
a4d34ecc45 Merge with 0.9 2012-04-19 19:35:10 +01:00
Matthew Wild
01fbb05094 mod_bosh: Log error on BOSH parse failure (thanks daurnimator) 2012-04-19 19:30:47 +01:00
Kim Alvefur
3c2e464d58 mod_posix, mod_bosh, mod_admin_telnet: Use module:set_global() 2012-03-15 14:47:46 +01:00
Waqas Hussain
e246f6a8d7 mod_bosh: Remove unused reference to lxp 2011-12-14 06:42:23 +05:00
Waqas Hussain
9e2f76f84b mod_bosh: Fixed use of a private HTTP request property. 2011-12-09 11:44:00 +05:00