Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why updating time is so important for a web server like nginx?

enter image description here

As you can see,every time a signal is received,nginx will first of all update time,why is time a big deal for web servers?

like image 343
cpuer Avatar asked Oct 10 '22 18:10

cpuer


2 Answers

nginx uses the time for rate limiting, among other things (like logging).

Implementing good rate limiting is probably the main reason to keep the value as up-to-date as possible, though.

like image 172
Nemo Avatar answered Oct 24 '22 20:10

Nemo


In the event-driven programming, timer is an important thing which used to process timeout event etc.

So nginx must update time at first to keep timer working correctly.

like image 44
bigplum Avatar answered Oct 24 '22 20:10

bigplum