Kim Alvefur
71ad48095d
plugins: Use integer config API with interval specification where sensible
...
Many of these fall into a few categories:
- util.cache size, must be >= 1
- byte or item counts that logically can't be negative
- port numbers that should be in 1..0xffff
2 years ago
Kim Alvefur
98922d54b1
plugins: Prefix module imports with prosody namespace
3 years ago
Kim Alvefur
7acd3092ec
mod_net_multiplex: Set read size/mode to that of the target listener
...
Otherwise it would use the configured buffer size, or previously '*a'.
Using the read size set by the listener seems more sensible.
5 years ago
Kim Alvefur
8fae7acf31
mod_net_multiplex: Read no more than the max buffer size setting
...
Otherwise the '*a' read mode applies, which under certain circumstances
can read infinite amounts of data into memory.
5 years ago
Kim Alvefur
62b9a7f53f
mod_net_multiplex: Remove debug message
...
This was something I added during development and set to info level for
visibility.
6 years ago
Kim Alvefur
a95af210d1
mod_net_multiplex: Tweak debug logging for ALPN case
6 years ago
Kim Alvefur
0fdb85997a
mod_net_multiplex: Add support for using ALPN
...
Potentially a bit more efficient since it can jump to the selected
protocol on connect instead of waiting for some data to look at.
Adds a 'protocol' field to net providers for this purpose.
6 years ago
Kim Alvefur
044da0478a
mod_net_multiplex: Silence luacheck warnings
7 years ago
Kim Alvefur
05077e583b
mod_net_multiplex: Enable SSL on the SSL port ( fixes #803 )
9 years ago
Anton Shestakov
37e7fd37da
mod_net_multiplex: remove unused one-letter loop variable [luacheck]
10 years ago
Matthew Wild
899b6d53ae
net.http, net.http.server, mod_c2s, mod_s2s, mod_component, mod_admin_telnet, mod_net_multiplex: Add ondetach to release connection from 'sessions' table (or equivalent)
11 years ago
Waqas Hussain
d9d38ef125
mod_{admin_telnet,c2s,component,http,net_multiplex,s2s}: Use module:provides() instead of module:add_item().
13 years ago
Matthew Wild
46ae484971
mod_net_multiplex: Port multiplexing (run multiple different services on a the same port(s))... now pluggable for use with any net plugin
14 years ago