<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://hg.omfa.de/prosody-hg/</link>
    <language>en-us</language>

    <title>prosody-hg: spec/util_dbuffer_spec.lua history</title>
    <description>spec/util_dbuffer_spec.lua revision history</description>
    <item>
    <title>util.dbuffer: Add a bunch of missing test cases</title>
    <link>http://hg.omfa.de/prosody-hg/log/bf6d2f9fad4d/spec/util_dbuffer_spec.lua</link>
    <description><![CDATA[util.dbuffer: Add a bunch of missing test cases<br/>
<br/>
Found via mutation testing.]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Tue, 11 Oct 2022 11:38:32 +0100</pubDate>
</item>
<item>
    <title>util.dbuffer: Fix bugs, remove multi-char support (more complex than first thought)</title>
    <link>http://hg.omfa.de/prosody-hg/log/19cddf92fcc2/spec/util_dbuffer_spec.lua</link>
    <description><![CDATA[util.dbuffer: Fix bugs, remove multi-char support (more complex than first thought)<br/>
<br/>
Character sequences could be split across chunk boundaries. Would require a bunch<br/>
of code to make that work reliably.<br/>
<br/>
Only apply front_consumed on first chunk, and adjust buffer_pos accordingly.]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Tue, 29 Jun 2021 14:25:57 +0100</pubDate>
</item>
<item>
    <title>util.dbuffer: Add read_until() method</title>
    <link>http://hg.omfa.de/prosody-hg/log/11e0a0a08da3/spec/util_dbuffer_spec.lua</link>
    <description><![CDATA[util.dbuffer: Add read_until() method]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Tue, 29 Jun 2021 13:48:14 +0100</pubDate>
</item>
<item>
    <title>Merge 0.11-&gt;trunk</title>
    <link>http://hg.omfa.de/prosody-hg/log/3a72cb126d6c/spec/util_dbuffer_spec.lua</link>
    <description><![CDATA[Merge 0.11-&gt;trunk]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Mon, 12 Oct 2020 21:29:20 +0200</pubDate>
</item>
<item>
    <title>util.dbuffer: Expose length as :len() method, like strings</title>
    <link>http://hg.omfa.de/prosody-hg/log/a8ef69f7fc35/spec/util_dbuffer_spec.lua</link>
    <description><![CDATA[util.dbuffer: Expose length as :len() method, like strings<br/>
<br/>
Ref #1598]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Mon, 12 Oct 2020 20:20:02 +0200</pubDate>
</item>
<item>
    <title>Merge 0.11-&gt;trunk</title>
    <link>http://hg.omfa.de/prosody-hg/log/6a608ecb3471/spec/util_dbuffer_spec.lua</link>
    <description><![CDATA[Merge 0.11-&gt;trunk]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Tue, 29 Sep 2020 15:30:48 +0100</pubDate>
</item>
<item>
    <title>util.dbuffer: Simplify test case</title>
    <link>http://hg.omfa.de/prosody-hg/log/3c0940f3cf74/spec/util_dbuffer_spec.lua</link>
    <description><![CDATA[util.dbuffer: Simplify test case<br/>
<br/>
An earlier theory involved the bug being related to collapsing multiple<br/>
items, so it exercised that too.<br/>
<br/>
Also correct the comment, it referred to the space in &quot;hello world&quot; in<br/>
an earlier version before the test string was changed to &quot;foobar&quot;, which<br/>
was what was tested in a REPL]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Mon, 24 Aug 2020 17:28:48 +0200</pubDate>
</item>
<item>
    <title>util.dbuffer: Simplify test case</title>
    <link>http://hg.omfa.de/prosody-hg/log/64713f21ff0e/spec/util_dbuffer_spec.lua</link>
    <description><![CDATA[util.dbuffer: Simplify test case<br/>
<br/>
An earlier theory involved the bug being related to collapsing multiple<br/>
items, so it exercised that too.<br/>
<br/>
Also correct the comment, it referred to the space in &quot;hello world&quot; in<br/>
an earlier version before the test string was changed to &quot;foobar&quot;, which<br/>
was what was tested in a REPL]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Mon, 24 Aug 2020 17:28:48 +0200</pubDate>
</item>
<item>
    <title>util.dbuffer: Fix :sub() not working with partially-consumed chunks (thanks Zash for test case)</title>
    <link>http://hg.omfa.de/prosody-hg/log/8c6bace13229/spec/util_dbuffer_spec.lua</link>
    <description><![CDATA[util.dbuffer: Fix :sub() not working with partially-consumed chunks (thanks Zash for test case)<br/>
<br/>
This also appears to fix some bugs with chunk-encoded streams in net.http.parser.]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Mon, 24 Aug 2020 16:18:13 +0100</pubDate>
</item>
<item>
    <title>util.dbuffer: Add failing test case involving :sub after :discard</title>
    <link>http://hg.omfa.de/prosody-hg/log/7b720a815519/spec/util_dbuffer_spec.lua</link>
    <description><![CDATA[util.dbuffer: Add failing test case involving :sub after :discard]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Mon, 24 Aug 2020 17:07:37 +0200</pubDate>
</item>
<item>
    <title>util.dbuffer: Fix traceback when :collapse() is called on empty buffer</title>
    <link>http://hg.omfa.de/prosody-hg/log/d7a403060946/spec/util_dbuffer_spec.lua</link>
    <description><![CDATA[util.dbuffer: Fix traceback when :collapse() is called on empty buffer]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 20 Aug 2020 15:22:19 +0100</pubDate>
</item>
<item>
    <title>util.dbuffer: If no bytes parameter passed to read, return remainder of frontmost chunk</title>
    <link>http://hg.omfa.de/prosody-hg/log/eaee72c7afbd/spec/util_dbuffer_spec.lua</link>
    <description><![CDATA[util.dbuffer: If no bytes parameter passed to read, return remainder of frontmost chunk]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Mon, 29 Jun 2020 12:51:28 +0100</pubDate>
</item>
<item>
    <title>util.dbuffer: Don't use # operator in tests, Lua 5.1 doesn't support __len</title>
    <link>http://hg.omfa.de/prosody-hg/log/29b9b679bdbc/spec/util_dbuffer_spec.lua</link>
    <description><![CDATA[util.dbuffer: Don't use # operator in tests, Lua 5.1 doesn't support __len]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sun, 28 Jun 2020 12:26:04 +0100</pubDate>
</item>
<item>
    <title>util.dbuffer: dynamic string buffer</title>
    <link>http://hg.omfa.de/prosody-hg/log/39991e40d1dc/spec/util_dbuffer_spec.lua</link>
    <description><![CDATA[util.dbuffer: dynamic string buffer<br/>
<br/>
Similar to util.ringbuffer (and shares almost identical API). Differences:<br/>
<br/>
- size limit is optional and dynamic<br/>
- does not allocate a fixed buffer of max_size bytes<br/>
- focus on simply storing references to existing string objects where possible,<br/>
  avoiding unnecessary allocations<br/>
- references are still stored in a ring buffer to enable use as a fast FIFO<br/>
<br/>
Optional second parameter to new() provides the number of ring buffer segments. On<br/>
Lua 5.2 on my laptop, a segment is ~19 bytes. If the ring buffer fills up, the next<br/>
write will compact all strings into a single item.]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Fri, 26 Jun 2020 16:41:31 +0100</pubDate>
</item>

  </channel>
</rss>
