From 8499f4e7214e86623d614368268913418289254c Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 8 Aug 2016 16:07:46 +0200 Subject: net.http.server: Set blocksize for serving data from FDs to 64k (sweet spot of efficiency according to a recent study) --- net/http/server.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net') diff --git a/net/http/server.lua b/net/http/server.lua index bc39767f..ba45ede0 100644 --- a/net/http/server.lua +++ b/net/http/server.lua @@ -13,7 +13,7 @@ local traceback = debug.traceback; local tostring = tostring; local cache = require "util.cache"; local codes = require "net.http.codes"; -local blocksize = require "socket".BLOCKSIZE or 2048; +local blocksize = 2^16; local _M = {}; -- cgit v1.2.3