Hi, I need your help
I'm having some trouble with `C.close()`, which is declared as: `int
close(int fd)`.
I want to flush the cache of a file via the control API, by calling the
`C.close()`
method. I tried to use a global variable to store the return value of
`C.open()`,
but when I send a reques
Get it,
thank you for your advice, it has been very beneficial!
Best regards!
Zexuan Luo 于2021年12月10日周五 上午9:44写道:
> The plugin can't be integrated with log-rotate as its fds are not
> managed by Nginx.
> We can develop a separate log-rotate feature in this plugin, or just
> let users manage the
The plugin can't be integrated with log-rotate as its fds are not
managed by Nginx.
We can develop a separate log-rotate feature in this plugin, or just
let users manage the lifecycle of the log file.
Just drop some of my concerns here:
1. maybe we can use file-logger as plugin name, as we already
Hi,
> What’s the meaning for this? IMHO, it’ll add more overheads.
My initial thought was that this would make it easier to develop and debug
locally
to get a better view of the data being requested.
This does add more overhead if there are too many requests. We cloud open it
only when we are deb
Hi,
> you can set whether to close and reopen the log file on each request
What’s the meaning for this? IMHO, it’ll add more overheads.
Also, can we use it with the log-rotate plugin? Or how can we control the
file size?
Chao Zhang
https://github.com/tokers
On December 8, 2021 at 23:04:15, Qi