aboutsummaryrefslogtreecommitdiffstats
path: root/util/xmppstream.lua
Commit message (Collapse)AuthorAgeFilesLines
* Merge 0.11->trunkMatthew Wild2021-05-131-1/+7
|\
| * util.xmppstream: Allow dynamically configuring the stanza size limit for a ↵Matthew Wild2021-05-101-0/+3
| | | | | | | | | | | | | | stream This may be useful for any plugins that want to experiment with different policies for stanza size limits (e.g. unauthenticated vs authenticated streams).
| * util.xmppstream: Mark bytes for stream closure as handledMatthew Wild2021-05-101-0/+3
| |
| * util.xmppstream: Reduce default xmppstream limit to 1MBMatthew Wild2021-05-101-1/+1
| |
* | util.xmppstream: Send <?xml?> declaration in same call as stream openKim Alvefur2021-04-141-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If network_settings.opportunistic_writes is enabled then this would previously have resulted in two socket writes, and possibly two packets being sent. This caused some issues in older versions of Gajim, which apparently expected the stream opening in the first packet, and thus it could not connect. With this change and opportunistic_writes enabled, the first packet should contain both the xml declaration and the stream open tag. Without opportunistic_writes, there should be no observable change. Tested with Gajim 1.1.2 (on same machine). Unsure if loopback behaves differently than the network here.
* | util.xmppstream: Ensure stream 'id' is always present (fix #1626)Kim Alvefur2021-02-031-1/+1
| | | | | | | | Backout c2d144d3f8dd
* | util.xmppstream: Inherit xml:lang from stream to stanzas (fixes #1401)Kim Alvefur2019-07-281-0/+6
|/
* util.xmppstream: Explicitly release old parser object on stream resetMatthew Wild2018-07-311-1/+6
|
* util.xmppstream: Perfom validation of XML declaration parametersMatthew Wild2018-07-111-10/+13
|
* vairious: Add annotation when an empty environment is set [luacheck]Kim Alvefur2018-02-281-0/+1
|
* util: Various minor changes to please [luacheck]Kim Alvefur2017-11-101-4/+10
|
* util.xmppstream: Remove namespace tracking, it's broken as implementedMatthew Wild2016-03-051-23/+0
| | | | | The code fails to handle namespaces on the initial opening tag (when 'stanza' is nil). Fixing this seems not worth the effort for a feature that is not being used.
* util.stanza, util.xml, util.xmppstream: Add support for tracking defined ↵Matthew Wild2015-12-081-0/+23
| | | | namespaces and their prefix (stanza.namespaces), knowing/preserving prefix names is required for some applications (thanks daurnimator)
* util.*: Remove use of module() function, make all module functions local and ↵Kim Alvefur2015-02-211-7/+9
| | | | return them in a table at the end
* Merge 0.9->0.10Matthew Wild2014-08-281-1/+1
|\
| * util.xmppstream: When error is 'no-stream', pass the received tagname to the ↵Matthew Wild2014-08-231-1/+1
| | | | | | | | error handler
* | util.xmppstream: Don't include empty stream ID in stream header (got here ↵Kim Alvefur2014-08-271-1/+1
| | | | | | | | from mod_c2s)
* | util.xmppstream: Check for callback that may add stream header attributesKim Alvefur2014-04-181-0/+3
| |
* | mod_c2s, mod_s2s, mod_component, util.xmppstream: Move all ↵Kim Alvefur2014-04-101-0/+16
| | | | | | | | session:open_stream() functions to util.xmppstream
* | Merge 0.9->0.10Matthew Wild2014-04-021-12/+12
|\ \ | |/ |/|
| * Remove all trailing whitespaceFlorian Zeitz2013-08-091-12/+12
| |
* | util.xmppstream: Also disable CharacterData merging after stream restartsMatthew Wild2014-04-021-1/+1
| |
* | util.xmppstream: Disable LuaExpat's buffering (if possible)Matthew Wild2014-04-021-3/+3
| |
* | util.xmppstream: Implement stanza size limiting, default limit 10MBMatthew Wild2014-03-301-6/+80
|/
* util.xmppstream: Include error stanza in error message if no error handler ↵Waqas Hussain2013-01-261-1/+1
| | | | is available.
* util.xmppstream: Optimize attribute processing.Waqas Hussain2012-01-251-10/+9
|
* util.xmppstream: Have faith in the XML parser matching start and end tags.Waqas Hussain2012-01-251-10/+2
|
* util.xmppstream: Remove some unnecessary code.Waqas Hussain2012-01-251-2/+0
|
* util.dependencies, util.xmppstream: Move LuaExpat version checking to ↵Waqas Hussain2011-11-221-7/+0
| | | | util.dependencies.
* util.xmppstream: A little cleanup.Waqas Hussain2011-11-221-8/+2
|
* Merge 0.8->trunkMatthew Wild2011-06-051-1/+1
|\
| * util.xmppstream: Check to make sure parser.stop is present before calling it.Waqas Hussain2011-06-051-1/+1
| |
* | Merge 0.8->trunkMatthew Wild2011-06-021-2/+5
|\|
| * Merge 0.7->0.8Matthew Wild2011-06-021-2/+5
| |
* | Merge 0.8->trunkMatthew Wild2011-06-021-1/+0
|\|
| * Merge 0.7->0.8Matthew Wild2011-06-021-1/+0
| |
| * util.xmppstream: Reject XML comments, processing instructions and (if ↵Matthew Wild2011-06-011-0/+21
| | | | | | | | supported by LuaExpat) DTDs. If not supported, log a warning.
| * util.xmppstream: Allow stream_ns = "" for parsing streams with no xmlnsMatthew Wild2010-12-211-1/+4
| |
| * util.xmppstream: Expose ns_separator and ns_patternMatthew Wild2010-12-071-0/+3
| |
| * util.xmppstream: Fix logger name.Waqas Hussain2010-12-031-1/+1
| |
* | util.xmppstream: Reject XML comments, processing instructions and (if ↵Matthew Wild2011-06-011-0/+21
| | | | | | | | supported by LuaExpat) DTDs. If not supported, log a warning.
* | util.xmppstream: Optimized stanza building by bypassing the stanza API.Waqas Hussain2010-12-291-7/+16
| |
* | util.xmppstream: Allow stream_ns = "" for parsing streams with no xmlnsMatthew Wild2010-12-211-1/+4
| |
* | util.xmppstream: Expose ns_separator and ns_patternMatthew Wild2010-12-071-0/+3
| |
* | util.xmppstream: Fix logger name.Waqas Hussain2010-12-031-1/+1
|/
* util.stanza, util.xmppstream, core.xmlhandlers: Allow stanza.last_add to be ↵Waqas Hussain2010-11-261-1/+2
| | | | nil, and set it nil by default. Saves a table allocation per-element. 20% faster stanza building.
* util.xmppstream: Preserve the stream content namespace on descendents of ↵Waqas Hussain2010-11-201-1/+7
| | | | elements which are in another namespace.
* Monster whitespace commit (beware the whitespace monster).Waqas Hussain2010-10-161-2/+2
|
* util.xmppstream: Removed some useless property assignments.Waqas Hussain2010-08-031-4/+0
|
* util.xmppstream: Add set_session() method to change the session that a ↵Matthew Wild2010-08-021-2/+8
| | | | stream is associated with