projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
88a2dc4
)
portmanager: Make maximum read size configurable, and default to 4KB
author
Matthew Wild
<mwild1@gmail.com>
Sun, 30 Mar 2014 07:44:55 +0000
(08:44 +0100)
committer
Matthew Wild
<mwild1@gmail.com>
Sun, 30 Mar 2014 07:44:55 +0000
(08:44 +0100)
core/portmanager.lua
patch
|
blob
|
history
diff --git
a/core/portmanager.lua
b/core/portmanager.lua
index 7a2474520ebbcbf4f58f3a43ca53fe04158cf0c6..421d7fc60f4c27c40ab0b98f3a8db15cb02d55c7 100644
(file)
--- 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
table.insert(default_local_interfaces, "::1");
end
+local default_mode = config.get("*", "network_default_read_size") or 4096;
+
--- Private state
-- service_name -> { service_info, ... }
--- 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 );
}
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
local hooked_ports = {};
for interface in bind_interfaces do