Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge 0.11->trunk | Matthew Wild | 2021-05-13 | 1 | -1/+7 |
|\ | |||||
| * | util.xmppstream: Allow dynamically configuring the stanza size limit for a ↵ | Matthew Wild | 2021-05-10 | 1 | -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 handled | Matthew Wild | 2021-05-10 | 1 | -0/+3 |
| | | |||||
| * | util.xmppstream: Reduce default xmppstream limit to 1MB | Matthew Wild | 2021-05-10 | 1 | -1/+1 |
| | | |||||
* | | util.xmppstream: Send <?xml?> declaration in same call as stream open | Kim Alvefur | 2021-04-14 | 1 | -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 Alvefur | 2021-02-03 | 1 | -1/+1 |
| | | | | | | | | Backout c2d144d3f8dd | ||||
* | | util.xmppstream: Inherit xml:lang from stream to stanzas (fixes #1401) | Kim Alvefur | 2019-07-28 | 1 | -0/+6 |
|/ | |||||
* | util.xmppstream: Explicitly release old parser object on stream reset | Matthew Wild | 2018-07-31 | 1 | -1/+6 |
| | |||||
* | util.xmppstream: Perfom validation of XML declaration parameters | Matthew Wild | 2018-07-11 | 1 | -10/+13 |
| | |||||
* | vairious: Add annotation when an empty environment is set [luacheck] | Kim Alvefur | 2018-02-28 | 1 | -0/+1 |
| | |||||
* | util: Various minor changes to please [luacheck] | Kim Alvefur | 2017-11-10 | 1 | -4/+10 |
| | |||||
* | util.xmppstream: Remove namespace tracking, it's broken as implemented | Matthew Wild | 2016-03-05 | 1 | -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 Wild | 2015-12-08 | 1 | -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 Alvefur | 2015-02-21 | 1 | -7/+9 |
| | | | | return them in a table at the end | ||||
* | Merge 0.9->0.10 | Matthew Wild | 2014-08-28 | 1 | -1/+1 |
|\ | |||||
| * | util.xmppstream: When error is 'no-stream', pass the received tagname to the ↵ | Matthew Wild | 2014-08-23 | 1 | -1/+1 |
| | | | | | | | | error handler | ||||
* | | util.xmppstream: Don't include empty stream ID in stream header (got here ↵ | Kim Alvefur | 2014-08-27 | 1 | -1/+1 |
| | | | | | | | | from mod_c2s) | ||||
* | | util.xmppstream: Check for callback that may add stream header attributes | Kim Alvefur | 2014-04-18 | 1 | -0/+3 |
| | | |||||
* | | mod_c2s, mod_s2s, mod_component, util.xmppstream: Move all ↵ | Kim Alvefur | 2014-04-10 | 1 | -0/+16 |
| | | | | | | | | session:open_stream() functions to util.xmppstream | ||||
* | | Merge 0.9->0.10 | Matthew Wild | 2014-04-02 | 1 | -12/+12 |
|\ \ | |/ |/| | |||||
| * | Remove all trailing whitespace | Florian Zeitz | 2013-08-09 | 1 | -12/+12 |
| | | |||||
* | | util.xmppstream: Also disable CharacterData merging after stream restarts | Matthew Wild | 2014-04-02 | 1 | -1/+1 |
| | | |||||
* | | util.xmppstream: Disable LuaExpat's buffering (if possible) | Matthew Wild | 2014-04-02 | 1 | -3/+3 |
| | | |||||
* | | util.xmppstream: Implement stanza size limiting, default limit 10MB | Matthew Wild | 2014-03-30 | 1 | -6/+80 |
|/ | |||||
* | util.xmppstream: Include error stanza in error message if no error handler ↵ | Waqas Hussain | 2013-01-26 | 1 | -1/+1 |
| | | | | is available. | ||||
* | util.xmppstream: Optimize attribute processing. | Waqas Hussain | 2012-01-25 | 1 | -10/+9 |
| | |||||
* | util.xmppstream: Have faith in the XML parser matching start and end tags. | Waqas Hussain | 2012-01-25 | 1 | -10/+2 |
| | |||||
* | util.xmppstream: Remove some unnecessary code. | Waqas Hussain | 2012-01-25 | 1 | -2/+0 |
| | |||||
* | util.dependencies, util.xmppstream: Move LuaExpat version checking to ↵ | Waqas Hussain | 2011-11-22 | 1 | -7/+0 |
| | | | | util.dependencies. | ||||
* | util.xmppstream: A little cleanup. | Waqas Hussain | 2011-11-22 | 1 | -8/+2 |
| | |||||
* | Merge 0.8->trunk | Matthew Wild | 2011-06-05 | 1 | -1/+1 |
|\ | |||||
| * | util.xmppstream: Check to make sure parser.stop is present before calling it. | Waqas Hussain | 2011-06-05 | 1 | -1/+1 |
| | | |||||
* | | Merge 0.8->trunk | Matthew Wild | 2011-06-02 | 1 | -2/+5 |
|\| | |||||
| * | Merge 0.7->0.8 | Matthew Wild | 2011-06-02 | 1 | -2/+5 |
| | | |||||
* | | Merge 0.8->trunk | Matthew Wild | 2011-06-02 | 1 | -1/+0 |
|\| | |||||
| * | Merge 0.7->0.8 | Matthew Wild | 2011-06-02 | 1 | -1/+0 |
| | | |||||
| * | util.xmppstream: Reject XML comments, processing instructions and (if ↵ | Matthew Wild | 2011-06-01 | 1 | -0/+21 |
| | | | | | | | | supported by LuaExpat) DTDs. If not supported, log a warning. | ||||
| * | util.xmppstream: Allow stream_ns = "" for parsing streams with no xmlns | Matthew Wild | 2010-12-21 | 1 | -1/+4 |
| | | |||||
| * | util.xmppstream: Expose ns_separator and ns_pattern | Matthew Wild | 2010-12-07 | 1 | -0/+3 |
| | | |||||
| * | util.xmppstream: Fix logger name. | Waqas Hussain | 2010-12-03 | 1 | -1/+1 |
| | | |||||
* | | util.xmppstream: Reject XML comments, processing instructions and (if ↵ | Matthew Wild | 2011-06-01 | 1 | -0/+21 |
| | | | | | | | | supported by LuaExpat) DTDs. If not supported, log a warning. | ||||
* | | util.xmppstream: Optimized stanza building by bypassing the stanza API. | Waqas Hussain | 2010-12-29 | 1 | -7/+16 |
| | | |||||
* | | util.xmppstream: Allow stream_ns = "" for parsing streams with no xmlns | Matthew Wild | 2010-12-21 | 1 | -1/+4 |
| | | |||||
* | | util.xmppstream: Expose ns_separator and ns_pattern | Matthew Wild | 2010-12-07 | 1 | -0/+3 |
| | | |||||
* | | util.xmppstream: Fix logger name. | Waqas Hussain | 2010-12-03 | 1 | -1/+1 |
|/ | |||||
* | util.stanza, util.xmppstream, core.xmlhandlers: Allow stanza.last_add to be ↵ | Waqas Hussain | 2010-11-26 | 1 | -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 Hussain | 2010-11-20 | 1 | -1/+7 |
| | | | | elements which are in another namespace. | ||||
* | Monster whitespace commit (beware the whitespace monster). | Waqas Hussain | 2010-10-16 | 1 | -2/+2 |
| | |||||
* | util.xmppstream: Removed some useless property assignments. | Waqas Hussain | 2010-08-03 | 1 | -4/+0 |
| | |||||
* | util.xmppstream: Add set_session() method to change the session that a ↵ | Matthew Wild | 2010-08-02 | 1 | -2/+8 |
| | | | | stream is associated with |