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 |
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
|
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
|
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
|
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 |
Kim Alvefur
|
49d71b5ec1
|
mod_bosh: Use new format for headers when checking for proxies to get the originating IP
|
14 years ago |
Matthew Wild
|
dac7d9c03f
|
mod_bosh: Set Content-Type to text/html for GET response (thanks Medics)
|
14 years ago |
Matthew Wild
|
0438557094
|
mod_bosh: Remove unused send_buffer variable
|
14 years ago |
Matthew Wild
|
ca695ad8df
|
mod_bosh: Fix request/response mixup
|
14 years ago |
Matthew Wild
|
ae8d94109d
|
mod_bosh: Remove unused import of util.timer
|
14 years ago |
Matthew Wild
|
ff4cc9de8a
|
mod_bosh: Remove unused import of net.httpserver
|
14 years ago |
Matthew Wild
|
15b5936dc0
|
mod_bosh: Add routes without trailing-'/', so that both /http-bind and /http-bind/ work again
|
14 years ago |
Matthew Wild
|
377c44d0ee
|
mod_bosh: Update informational message on GET
|
14 years ago |
Matthew Wild
|
1ca477397d
|
mod_bosh: Large commit to update to mod_http/net.http.server APIs. Becomes a shared module.
|
14 years ago |
Matthew Wild
|
a8e1a8b7de
|
mod_bosh: Optimisation, store reply_before value as waiting_requests value (saves a lookup)
|
14 years ago |
Matthew Wild
|
f39d1cdd38
|
mod_bosh: Log error on BOSH parse failure (thanks daurnimator)
|
14 years ago |
Kim Alvefur
|
df424cfe12
|
mod_posix, mod_bosh, mod_admin_telnet: Use module:set_global()
|
14 years ago |
Waqas Hussain
|
5c9595e00f
|
mod_bosh: Remove unused reference to lxp
|
14 years ago |
Waqas Hussain
|
5ff78636e0
|
mod_bosh: Fixed use of a private HTTP request property.
|
14 years ago |
Matthew Wild
|
6003571258
|
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
|
1ef4ed4ad0
|
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
|
046b9c1dc0
|
mod_bosh: Remove a session from inactive_sessions before destroying it
|
14 years ago |
Matthew Wild
|
02027fafeb
|
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
|
fe9d6a117e
|
mod_bosh: s/xmlns:streams/xmlns:stream/ - fixes #265 (thanks Tim)
|
15 years ago |
Matthew Wild
|
7115de1d49
|
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 |
Matthew Wild
|
d7b9494d87
|
mod_bosh: Fix logging when no sid present, fix a missing semi-colon, avoid an extra useless table lookup (thanks Thomas)
|
15 years ago |
Matthew Wild
|
16a24fc55f
|
Backout commit d6366294f618 which I was testing and didn't mean to push to 0.8
|
15 years ago |
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).
|
15 years ago |
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)
|
15 years ago |
Matthew Wild
|
cb274cd0d4
|
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).
|
15 years ago |
Matthew Wild
|
a5cba5ec97
|
mod_bosh: Return true from send()
|
15 years ago |
Matthew Wild
|
7745bdd7d6
|
mod_bosh: Fix for miscalculating inactivity, causing disconnects under a steady stream of traffic
|
15 years ago |
Matthew Wild
|
71960dbef3
|
mod_bosh: Fix for miscalculating inactivity, causing disconnects under a steady stream of traffic
|
15 years ago |
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.
|
15 years ago |
Matthew Wild
|
fb37ed2b04
|
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.
|
15 years ago |
Matthew Wild
|
673d2cd2a3
|
mod_bosh: Switch to util.xmppstream from xmlhandlers
|
15 years ago |
Matthew Wild
|
68ba7d6d43
|
mod_bosh: Switch to util.xmppstream from xmlhandlers
|
15 years ago |
Waqas Hussain
|
7bdedfb4f7
|
mod_bosh: Use util.timer for timers instead of server.addtimer.
|
15 years ago |
Waqas Hussain
|
ad58924b05
|
mod_bosh: Use util.timer for timers instead of server.addtimer.
|
15 years ago |