Skip to content

can't load this module at init_by_lua* phase #8

@xiangnanscu

Description

@xiangnanscu

I'm designing a web framework that will preload all modules at init_by_lua* phase for better performance for the first request, also more elegant design taste (my opinion). But the following lines decide this module can be only loaded at request time. So bungle, what's your opinion?

local defaults = {
    tmp_dir          = var.reqargs_tmp_dir,
    timeout          = tonumber(var.reqargs_timeout)       or 1000,
    chunk_size       = tonumber(var.reqargs_chunk_size)    or 4096,
    max_get_args     = tonumber(var.reqargs_max_get_args)  or 100,
    max_post_args    = tonumber(var.reqargs_max_post_args) or 100,
    max_line_size    = tonumber(var.reqargs_max_line_size),
    max_file_size    = tonumber(var.reqargs_max_file_size),
    max_file_uploads = tonumber(var.reqargs_max_file_uploads)
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions