cpuer
cpuer

Reputation: 7793

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?

Upvotes: 5

Views: 201

Answers (2)

bigplum
bigplum

Reputation: 46

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.

Upvotes: 2

Nemo
Nemo

Reputation: 71565

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.

Upvotes: 2

Related Questions