1 parent 01c4dbb commit 67762d8Copy full SHA for 67762d8
1 file changed
lualib/httpd/init.lua
@@ -165,8 +165,8 @@ function httpd:run()
165
if io.type(output) == 'file' then
166
self.output = true
167
output:setvbuf("full", 1 << 20)
168
- cf.at(0.1, function ()
169
- return io_flush() -- 定期刷新缓冲, 日志缓冲平凡导致的性能问题
+ cf.at(0.2, function ()
+ return io_flush() -- 定期刷新缓冲, 减少日志缓冲频繁导致的性能问题
170
end)
171
end
172
return cf.wait()
0 commit comments