Software /
code /
prosody
Comparison
core/portmanager.lua @ 7421:d6f12056afda
portmanager: Set default read size back to 4K
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 04 May 2016 15:31:32 +0200 |
parent | 7078:ec17115e3721 |
child | 7947:24170d74b00b |
comparison
equal
deleted
inserted
replaced
7420:3fc5560557a5 | 7421:d6f12056afda |
---|---|
27 if socket.tcp6 and config.get("*", "use_ipv6") ~= false then | 27 if socket.tcp6 and config.get("*", "use_ipv6") ~= false then |
28 table.insert(default_interfaces, "::"); | 28 table.insert(default_interfaces, "::"); |
29 table.insert(default_local_interfaces, "::1"); | 29 table.insert(default_local_interfaces, "::1"); |
30 end | 30 end |
31 | 31 |
32 local default_mode = config.get("*", "network_default_read_size") or "*a"; | 32 local default_mode = config.get("*", "network_default_read_size") or 4096; |
33 | 33 |
34 --- Private state | 34 --- Private state |
35 | 35 |
36 -- service_name -> { service_info, ... } | 36 -- service_name -> { service_info, ... } |
37 local services = setmetatable({}, { __index = function (t, k) rawset(t, k, {}); return rawget(t, k); end }); | 37 local services = setmetatable({}, { __index = function (t, k) rawset(t, k, {}); return rawget(t, k); end }); |