Hello!
On Fri, May 8, 2015 at 2:57 AM, Aapo Talvensaari wrote:
> So the cache gets also updates for going on request if there is a new
> request coming on during the request processing, e.g. the time is updated
> (by the new events and also affects previously started but not finished ones
> when calling ngx.now etc.) also for requests that have already been started?
>
Yes. There can be multiple I/O events or timer expiring events during
an individual request's lifetime. And there must be at least one I/O
event for a newly created request (unless the request is so small that
it is preread into the previous request's receive buffers on the same
connection, which is pretty fine as well).
Well, it's the nature of event-driven I/O models ;)
Regards,
-agentzh