Kim Alvefur
b49c57d53f
mod_bosh: Fix typo in comment
4 years ago
Kim Alvefur
e7df432614
mod_bosh,mod_websocket: Make into global-shared modules (...again)
...
Global modules aren't quite considered loaded onto hosts, which
causes confusion in some cases. They are also reported in the log as
being served on http://*:5280/foo which is also a bit confusing, and
can't be clicked.
Global modules also have to have their paths configured in the global
section, which could be confusing and unexpected.
This global+shared method should be the best of both worlds.
5 years ago
Kim Alvefur
c315a85201
mod_bosh: Add todo to use util.session to create session object
...
So that we get single point where shared session properties can be
added. But not now. One day. Maybe. Patches welcome.
4 years ago
Kim Alvefur
c506269ff5
Fix various spelling errors (thanks codespell)
...
Also special thanks to timeless, for wordlessly reminding me to check
for typos.
4 years ago
Matthew Wild
4c4e764e23
mod_c2s, mod_s2s, mod_component, mod_bosh, mod_websockets: Set default stanza size limits
...
c2s/bosh/ws streams will default to 256KB, s2s and components to 512KB.
These values are aligned with ejabberd's default settings, which should reduce
issues related to inconsistent size limits between servers on the XMPP network.
The previous default (10MB) is excessive for any production server, and allows
significant memory usage by even unauthenticated sessions.
5 years ago
Kim Alvefur
62eee94e2b
mod_bosh: Ensure that stream is directed to a VirtualHost ( fixes #425 )
5 years ago
Kim Alvefur
8f2b039615
mod_bosh: Pick out the 'wait' before checking it instead of earlier
...
Going to add more host related checks, so to keep the wait variable
closer to the related checks
5 years ago
Kim Alvefur
d18348b578
mod_bosh: Include warning if endpoint accessed insecurely ( #1172 )
...
This is to make it obvious if a misconfigured a proxy or the request
really is insecure.
Perhaps it should also check c2s_require_encryption?
5 years ago
Kim Alvefur
5860017b9f
mod_bosh: Use message template from mod_http_error
...
Looking Good!
And most importantly, consistent.
5 years ago
Kim Alvefur
7eb15b0b3f
mod_bosh: Count connection attempts non-VirtualHost as "bad host" (stats)
5 years ago
Matthew Wild
ff9bdefc7e
mod_bosh, mod_websocket: Add config options to override GET responses
6 years ago
Kim Alvefur
6164878eb1
mod_bosh: Abort early if request is missing hostname
...
Prevents traceback from passing nil to nameprep()
6 years ago
Arc Riley
5b40b11715
mod_bosh: Added metrics for active/inactive sessions, new BOSH sessions, BOSH errors, and timeouts (finishes #998 )
7 years ago
Kim Alvefur
5cd064035a
mod_bosh: Handle missing wait attribute ( fixes #1288 )
...
250855633092 did not fix this completely.
7 years ago
Kim Alvefur
40b1e3e0ed
plugins: Remove tostring call from logging
...
Taken care of by loggingmanager now
Mass-rewrite using lua pattern like `tostring%b()`
7 years ago
Kim Alvefur
b532d20ef3
mod_bosh: Fire stream feature event on hosts (thanks gerald)
...
Since the module is now global, this event was also fired in a global
context by default.
7 years ago
Kim Alvefur
c2562cb468
mod_bosh: Make BOSH global again!
7 years ago
Kim Alvefur
4aa93b912f
mod_bosh: Store the normalized hostname on session ( fixes #1151 )
8 years ago
Kim Alvefur
02fb1f6f66
mod_bosh: Update session.conn to point to the current connection ( fixes #890 )
9 years ago
Emmanuel Gil Peyrot
974866de52
mod_bosh: Add ::1 to the default trusted_proxies.
9 years ago
Kim Alvefur
a346709487
mod_bosh: Add extra debug logging to help with #1134
8 years ago
Kim Alvefur
1277677cc4
mod_bosh: Fix inconsistent whitespace [luacheck]
8 years ago
Matthew Wild
d62d872cd3
mod_bosh: Fix for 7be8f649d97d to skip error handling and allow other modules to handle the request
8 years ago
Matthew Wild
1325ac697f
mod_bosh: Increase number of stored responses to ensure we always keep responses within the rid window available
8 years ago
Matthew Wild
4ff9afe599
mod_bosh: Improve connection robustness with better handling of unexpected rids
8 years ago
Matthew Wild
6b94760640
mod_bosh: Some additonal comments to improve code readability
8 years ago
Matthew Wild
5d631871e6
mod_bosh: Whitespace
8 years ago
Matthew Wild
f40a467d0c
mod_bosh: Improve logging - parse errors will now log through the session logger if possible
8 years ago
Matthew Wild
f537f1572c
mod_bosh: Improve logging on session close (reason may be a table with params)
8 years ago
Kim Alvefur
4cdc813fed
mod_http: Set request.ip on all HTTP requests (moves code out of mod_bosh) ( fixes #540 )
8 years ago
Kim Alvefur
d0c3e64ff9
mod_bosh: Return implicit 404 instead of the proper BOSH terminate thing
8 years ago
Kim Alvefur
69f252bebf
mod_bosh: Limit stream to current host ( fixes #371 )
8 years ago
Kim Alvefur
c468196063
mod_bosh: Make into a normal module ( fixes #402 )
8 years ago
Kim Alvefur
330a365ca8
mod_bosh: Use module API to fire events
8 years ago
Kim Alvefur
a8c7b08aac
mod_bosh: Use moduleapi logger
8 years ago
Kim Alvefur
ccbc346900
mod_bosh: Rename variable to avoid name clash [luacheck]
8 years ago
Kim Alvefur
94c9012f75
mod_bosh: Ignore unused argument [luacheck]
8 years ago
Kim Alvefur
0114f1dd6a
mod_bosh: Remove unused variable [luacheck]
8 years ago
Sam Whited
582a2180f2
mod_bosh: Save last response in case retransmission is required
9 years ago
Matthew Wild
7793746f3e
mod_bosh: Update BOSH wait timeout logic to work despite the addition of deferred requests
9 years ago
Matthew Wild
96e00dbde1
mod_bosh: Fix typo
9 years ago
Matthew Wild
24ffa3ba68
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
4bb29b79ea
mod_bosh: Log when a stanza isn't handled because we can't find a session for it
9 years ago
Matthew Wild
c61ca6d7d0
mod_bosh: Correctly handle requests arriving out of order (thanks Jitsi folk!)
9 years ago
Kim Alvefur
6fe51ecd17
mod_bosh: Fix merge mistakes from c8923f882274
10 years ago
Kim Alvefur
ac987c6332
mod_bosh: Add annotations to ignore unused arguments [luacheck]
10 years ago
Kim Alvefur
56574de036
mod_bosh: Remove unused imports (also mistake in merge)
10 years ago
Kim Alvefur
5de738348c
mod_bosh: Fix imports that got lost in merge
10 years ago
Kim Alvefur
7ec3aac1af
mod_bosh: Don't decrement rid twice (thanks av6)
10 years ago
Kim Alvefur
acd12fcc61
mod_bosh: Reject fractional 'wait' (See #343 )
10 years ago