Answer the question
In order to leave comments, you need to log in
What happens when changing the readable file via lua in nginx?
There is a system that, depending on the request to nginx, gives the result through lua (fills in variables), and the result is read from a text file. The text file can be changed by another application at any time (or rather replaced via mv).
Actually the question is:
1) How to track this at the lua level (whether an exception happens), close the file.
2) Will such an error pull the fall of nginx itself
3) How can this be tested normally if the problem may not manifest itself immediately?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question