Software /
code /
prosody
Changeset
7541:1d3f9da189b5
net.http.server: Set blocksize for serving data from FDs to 64k (sweet spot of efficiency according to a recent study)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 08 Aug 2016 16:07:46 +0200 |
parents | 7540:e69df8093387 |
children | 7542:0f92dc8e8b88 7548:69d8e1477c43 |
files | net/http/server.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/net/http/server.lua Sun Aug 07 20:51:34 2016 +0200 +++ b/net/http/server.lua Mon Aug 08 16:07:46 2016 +0200 @@ -13,7 +13,7 @@ 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 = {};