To the best of my knowledge, the log_by_lua* handlers run last (far later than access_by_lua*), so you can't do your data back to access_by_lua*.
To get around the cosocket api limitations, just defer those parts of your code via timers (ngx.timer.at with 0 delay, so it will run as soon as possible after the request is done).
All of this is actually pretty well documented BTW. Make use of the great work by the community and agentzh.
Best regards,
Itamar
On Jun 9, 2016 16:00, "Nacim Idjakiréne" <
idjak...@gmail.com> wrote:
Hello Mailinglist ;)
In one of my openresty / lua app, i'm tracking ip address in a access_by_lua block, but i need to get some headers informations from log_by_lua and send them back to access_by_lua to store in a MongoDb database.
The problem is that log_by_lua do not support cosocket !!
How can i send back headers information from log_by_lua to access_by_lua ??
Thx for your help :)
.