Software /
code /
prosody
Comparison
net/http/server.lua @ 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 |
parent | 7489:d32406f27efd |
child | 7581:01d0d466d7be |
comparison
equal
deleted
inserted
replaced
7540:e69df8093387 | 7541:1d3f9da189b5 |
---|---|
11 local xpcall = xpcall; | 11 local xpcall = xpcall; |
12 local traceback = debug.traceback; | 12 local traceback = debug.traceback; |
13 local tostring = tostring; | 13 local tostring = tostring; |
14 local cache = require "util.cache"; | 14 local cache = require "util.cache"; |
15 local codes = require "net.http.codes"; | 15 local codes = require "net.http.codes"; |
16 local blocksize = require "socket".BLOCKSIZE or 2048; | 16 local blocksize = 2^16; |
17 | 17 |
18 local _M = {}; | 18 local _M = {}; |
19 | 19 |
20 local sessions = {}; | 20 local sessions = {}; |
21 local incomplete = {}; | 21 local incomplete = {}; |