| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| | |
|
| |
| |
| |
| | |
Thanks Ge0rG for testing
|
| |
| |
| |
| | |
Thanks tmolitor
|
| |
| |
| |
| | |
See longer explanation in 2c559953ad41
|
| |
| |
| |
| |
| |
| |
| |
| | |
This makes sure that a timer that returns 0 (or less) does not prevent
runtimers() from completing, as well as making sure a timer added with
zero timeout from within a timer does not run until the next tick.
Thanks tmolitor
|
| |
| |
| |
| |
| | |
valid_utf8() takes only one argument, so the false was probably meant
to be valid_xml_cdata(text, attribute=false)
|
| |
| |
| |
| |
| | |
Directly sending something over s2s needs to use sends2s() but the code
copied from mod_c2s had .send()
|
| |
| |
| |
| | |
(thanks damencho)
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This will result in the stream timing out instead, which is probably
correct if the stream has not been opened yet.
This was already done for c2s in e69df8093387
Thanks Ge0rG
|
| |
| |
| |
| | |
In some cases this method returns nothing, unclear why.
|
| |
| |
| |
| |
| |
| |
| |
| | |
The 'tls-unique' channel binding is undefined in TLS 1.3 according to a
single sentence in parenthesis in Apendix C of RFC 8446
This may trigger downgrade protection in clients that were expecting
channel binding to be available.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
in order to avoid conflict with a handler at the default (0) priority,
making it easier to write your own formatting in plugins.
this follows the common pattern of default modules having lower priority
|
| | |
|
| |
| |
| |
| | |
(+tests!!)
|
| |
| |
| |
| | |
Same reason as 712b2e6a09d9
|
| | |
|
| |
| |
| |
| |
| | |
When you have 3 almost identical functions, you tend to edit one and
then copypaste. Forgot to remove this line from the other two.
|
| |
| |
| |
| |
| | |
This avoids dynamically growing the buffer as Lua does when luaL_addchar
is used, thus saving on realloc calls.
|
| |
| |
| |
| | |
Also as docs
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
astyle \
--indent=tab \
--attach-classes \
--indent-switches \
--break-blocks \
--pad-oper \
--unpad-paren \
--add-braces \
--align-pointer=name \
--lineend=linux \
*.c
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
This is basically a recording of current behavior, to detect changes.
|
| |
| |
| |
| | |
(fixes #1596)
|
| |
| |
| |
| |
| |
| |
| | |
COMPAT: The __len metamethod does not work with tables in Lua 5.1.
Both strings and util.dbuffer now expose their length as a :len()
method.
|
| |
| |
| |
| | |
Ref #1598
|
| |
| |
| |
| | |
#1595) (thanks lessthan3)
|
| |
| |
| |
| | |
(fixes #1594)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Thanks pep. and lovetox
XEP-0045 §6.4:
> any field defined for the muc\#roomconfig FORM_TYPE can be included in
> the extended service discovery fields
Probably happened because the same mistake is in #1155
|
| | |
|
| |
| |
| |
| |
| | |
Going to add more host related checks, so to keep the wait variable
closer to the related checks
|
| | |
|
| | |
|
| |\ |
|
| | |
| | |
| | |
| | | |
partially-received frames against constraints
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
occurs
Previously any error, or even a normal websocket close frame, would return early,
leaving potentially entire frames in the buffer unprocessed and then discarded.
This change stops processing new data, but returns an existing processed data up
to the point of the error/close.
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
This improves performance and enforces stanza size limits earlier
in the pipeline.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Instead of using the string library, use methods from the passed object,
which are assumed to be equivalent.
This provides compatibility with objects from util.ringbuffer and
util.dbuffer, for example.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
An earlier theory involved the bug being related to collapsing multiple
items, so it exercised that too.
Also correct the comment, it referred to the space in "hello world" in
an earlier version before the test string was changed to "foobar", which
was what was tested in a REPL
|
| | |
| | |
| | |
| | |
| | |
| | | |
Zash for test case)
This also appears to fix some bugs with chunk-encoded streams in net.http.parser.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Similar to util.ringbuffer (and shares almost identical API). Differences:
- size limit is optional and dynamic
- does not allocate a fixed buffer of max_size bytes
- focus on simply storing references to existing string objects where possible,
avoiding unnecessary allocations
- references are still stored in a ring buffer to enable use as a fast FIFO
Optional second parameter to new() provides the number of ring buffer segments. On
Lua 5.2 on my laptop, a segment is ~19 bytes. If the ring buffer fills up, the next
write will compact all strings into a single item.
|