Comparison

core/portmanager.lua @ 7077:0386ccf20ac7

core: Increase default read size to "all of it", in practice 8K (size of LuaSockets buffer)
author Kim Alvefur <zash@zash.se>
date Sun, 10 Jan 2016 23:25:00 +0100 (2016-01-10)
parent 6041:a97591d2e1ad
child 7078:ec17115e3721
comparison
equal deleted inserted replaced
7076:ad9e683b8f0b 7077:0386ccf20ac7
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 4096; 32 local default_mode = config.get("*", "network_default_read_size") or "*a";
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 });