# HG changeset patch # User Matthew Wild # Date 1396165495 -3600 # Node ID a97591d2e1adf08b75fb3aeb955bdad238fa321b # Parent b3b1c9da38fb3591ef32511827316020bb5bf963 portmanager: Make maximum read size configurable, and default to 4KB diff -r b3b1c9da38fb -r a97591d2e1ad core/portmanager.lua --- a/core/portmanager.lua Tue Feb 18 20:03:12 2014 +0100 +++ b/core/portmanager.lua Sun Mar 30 08:44:55 2014 +0100 @@ -29,6 +29,8 @@ 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 @@ } 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