| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| | |
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.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Partial backports of the following commits from trunk:
6c804b6b2ca2 net.http: Pass server name along for SNI (fixes #1408)
75d2874502c3 net.server_select: SNI support (#409)
9a905888b96c net.server_event: Add SNI support (#409)
adc0672b700e net.server_epoll: Add support for SNI (#409)
d4390c427a66 net.server: Handle server name (SNI) as extra argument
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This is a new API that should be used in preference to http.destroy_request()
when possible, as it ensures the callback is always called (with an error of
course).
APIs that have edge-cases where they don't call callbacks have, from experience,
shown to be difficult to work with and often lead to unintentional leaks when
the callback was expected to free up certain resources.
|
| | |
| | |
| | |
| | |
| | | |
This was accidentally turned private in 647adfd8f738 as part of refactoring
for Lua 5.2+.
|
| | |
| | |
| | |
| | |
| | |
| | | |
(thanks marc0s)
Fixes a traceback when passed an IP address with no conn_type.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
The "Missing or invalid 'Host' header" case was dead code previously
because `host` was always at least an empty string.
|
| | |
| | |
| | |
| | |
| | | |
E.g. given `[::1]:5280` it would previously result in only `[` instead
of the correct `[::1]`
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
Related to #1560
|
| | |
| | |
| | |
| | |
| | |
| | | |
Fixes something like #1560 here too.
The password sent by the user already had saslprep applied.
|
| | | |
|
| | |
| | |
| | |
| | | |
'when' field, fixes #1557
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The stanza-id added during archiving looks exactly like what should be
stripped, so the stripping must happen before archiving.
Getting priorities right is hard!
Also no test coverage yet.
|