Commit graph

213 commits

Author SHA1 Message Date
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
Kim Alvefur
2612e75c8a mod_bosh, mod_websocket: Remove accidentally included dependency on non-existant module 2019-01-19 20:03:04 +01:00
Kim Alvefur
467260e6f5 mod_bosh: Drop CORS code in favor of than in mod_http
This deprecates the cross_domain_bosh setting. As a compat measure, if
it is set, mod_http_crossdomain is loaded.
2018-10-04 12:23:06 +02: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
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. 2011-12-07 05:54:17 +00:00
Matthew Wild
65e0b32a7e mod_bosh: Move stream:features sending until after the current request has been added to session.requests. Ensures correct inactivity logic. 2011-12-07 04:57:51 +00:00
Matthew Wild
d968e72bfb mod_bosh: Remove a session from inactive_sessions before destroying it 2011-12-07 03:54:28 +00:00
Matthew Wild
6f147fde17 mod_bosh: Store time to destroy session in inactive_sessions, removing dependency on session.bosh_max_inactive in cleanup timer 2011-12-07 02:58:22 +00:00
Matthew Wild
ac213cfcdd mod_bosh: s/xmlns:streams/xmlns:stream/ - fixes #265 (thanks Tim) 2011-09-15 17:38:24 +01:00
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. 2011-07-20 17:22:21 -04:00
Matthew Wild
545961d983 mod_bosh: Fix logging when no sid present, fix a missing semi-colon, avoid an extra useless table lookup (thanks Thomas) 2011-06-28 17:00:50 +01:00
Matthew Wild
7d8433ac02 Merge 0.8->trunk 2011-06-07 01:29:34 +01:00
Matthew Wild
16a24fc55f Backout commit d6366294f618 which I was testing and didn't mean to push to 0.8 2011-06-05 12:28:49 +01:00
Matthew Wild
b7ab106c48 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). 2011-03-04 20:27:57 +00:00
Matthew Wild
3df725786b 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) 2011-06-05 11:48:57 +01:00
Matthew Wild
d02f7c4700 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). 2011-03-04 20:27:57 +00:00
Matthew Wild
a5cba5ec97 mod_bosh: Return true from send() 2011-01-08 23:20:16 +00:00
Matthew Wild
7745bdd7d6 mod_bosh: Fix for miscalculating inactivity, causing disconnects under a steady stream of traffic 2011-01-04 21:38:14 +00:00
Matthew Wild
d6e50241ad 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. 2010-12-11 00:19:15 +00:00
Matthew Wild
673d2cd2a3 mod_bosh: Switch to util.xmppstream from xmlhandlers 2010-12-07 18:38:22 +00:00
Waqas Hussain
ad58924b05 mod_bosh: Use util.timer for timers instead of server.addtimer. 2010-12-02 22:47:29 +05:00
Waqas Hussain
8e1bc4ff71 mod_bosh: Don't add a Content-Type header to the HTTP OPTIONS reply. 2010-10-22 08:36:54 +05:00
Matthew Wild
36e12ad74a mod_bosh: Fix traceback when initiating a BOSH session to an unknown host 2010-09-10 17:56:24 +01:00
Matthew Wild
be6148a1eb mod_bosh: Support for reading the client's real IP through HTTP proxies from X-Forwarded-For 2010-08-28 22:25:12 +01:00
Matthew Wild
363d0578c0 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 2010-08-22 21:36:04 +01:00
Matthew Wild
3deb503477 mod_bosh: Fix to properly ignore repeated requests 2010-08-07 19:00:04 +01:00