aboutsummaryrefslogtreecommitdiffstats
path: root/net/http/server.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-08-08 16:07:46 +0200
committerKim Alvefur <zash@zash.se>2016-08-08 16:07:46 +0200
commit3506b088471128c7579c11782dff473223f49579 (patch)
tree70a690f0eef2a4ba02975fcfdeca84531e96a536 /net/http/server.lua
parent8631e529ba01d20a36f451029c450d97ef5c07af (diff)
downloadprosody-3506b088471128c7579c11782dff473223f49579.tar.gz
prosody-3506b088471128c7579c11782dff473223f49579.zip
net.http.server: Set blocksize for serving data from FDs to 64k (sweet spot of efficiency according to a recent study)
Diffstat (limited to 'net/http/server.lua')
-rw-r--r--net/http/server.lua2
1 files changed, 1 insertions, 1 deletions
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 = {};