diff options
author | Matthew Wild <mwild1@gmail.com> | 2014-04-02 17:42:22 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2014-04-02 17:42:22 +0100 |
commit | 97bac9bd826969c524c81709b7ded19fc058323d (patch) | |
tree | 861eaefae2bd906eace48b17e5f6172dca6c8f5c /core/portmanager.lua | |
parent | a479cb0e199235e6ba72de332f3994551cfa2cbb (diff) | |
parent | da820882348572de470a13a1a50f529a51243aa5 (diff) | |
download | prosody-97bac9bd826969c524c81709b7ded19fc058323d.tar.gz prosody-97bac9bd826969c524c81709b7ded19fc058323d.zip |
Merge 0.10->trunk
Diffstat (limited to 'core/portmanager.lua')
-rw-r--r-- | core/portmanager.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/portmanager.lua b/core/portmanager.lua index 95900c08..4cbf3eb3 100644 --- a/core/portmanager.lua +++ b/core/portmanager.lua @@ -29,6 +29,8 @@ if socket.tcp6 and config.get("*", "use_ipv6") ~= false then table.insert(default_local_interfaces, "::1"); end +local default_mode = config.get("*", "network_default_read_size") or 4096; + --- Private state -- service_name -> { service_info, ... } @@ -111,7 +113,7 @@ function activate(service_name) } bind_ports = set.new(type(bind_ports) ~= "table" and { bind_ports } or bind_ports ); - local mode, ssl = listener.default_mode or "*a"; + local mode, ssl = listener.default_mode or default_mode; local hooked_ports = {}; for interface in bind_interfaces do |