Skip to content

Commit 67762d8

Browse files
committed
减少httpd日志刷新频率
1 parent 01c4dbb commit 67762d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lualib/httpd/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ function httpd:run()
165165
if io.type(output) == 'file' then
166166
self.output = true
167167
output:setvbuf("full", 1 << 20)
168-
cf.at(0.1, function ()
169-
return io_flush() -- 定期刷新缓冲, 日志缓冲平凡导致的性能问题
168+
cf.at(0.2, function ()
169+
return io_flush() -- 定期刷新缓冲, 减少日志缓冲频繁导致的性能问题
170170
end)
171171
end
172172
return cf.wait()

0 commit comments

Comments
 (0)