These are chat archives for CZ-NIC/knot-resolver

1st
Jun 2017
Vladimír Čunát
@vcunat
Jun 01 2017 08:26
@nakame_maiku_twitter: while you remember, that was everything needed to integrate the aho-corasick update, as far as you found, right? (We will want to do it later.)
Mike Emigh
@nakame_maiku_twitter
Jun 01 2017 11:10
yep
Mike Emigh
@nakame_maiku_twitter
Jun 01 2017 11:31
im experimenting with a lua module that does an http get request, but it seems to block everything while it runs, is there anyway around that?
Vladimír Čunát
@vcunat
Jun 01 2017 11:32
and you need that result before the module exits its produce/consume phase? (or whichever you use)
Mike Emigh
@nakame_maiku_twitter
Jun 01 2017 11:36
its not operating on any queries, basically just using it to download a list of domains to blacklist
Vladimír Čunát
@vcunat
Jun 01 2017 11:37
Well, before the blacklist is downloaded, you don't want kresd to solve any queries?
Or you want it to go without any blacklist?
Mike Emigh
@nakame_maiku_twitter
Jun 01 2017 11:38
I would prefer that it does, because i would let to set an event to redownload once every 24 hours or something along those lines
Vladimír Čunát
@vcunat
Jun 01 2017 11:39
Well, first you need some asynchronous http get in lua. I don't know what options there are.
I'd put the blacklist into a lua variable - e.g. empty at first.
Mike Emigh
@nakame_maiku_twitter
Jun 01 2017 11:39
im thinking it could somehow release control with the ltn12 pump
basically copied a portion of the trust_anchor module to get it running
Vladimír Čunát
@vcunat
Jun 01 2017 11:40
Right, TA shows the API for timers with callbacks.
Mike Emigh
@nakame_maiku_twitter
Jun 01 2017 11:40
grab 1 step, release, grab next step, release
cant find any good examples on using the ltn12 pump though
Vladimír Čunát
@vcunat
Jun 01 2017 11:45
I haven't done anything like this in lua.
Mike Emigh
@nakame_maiku_twitter
Jun 01 2017 11:49
yeah might be easier just to cron it
Vladimír Čunát
@vcunat
Jun 01 2017 11:49
Ah, right. Cron it and in lua just add a timer to reload it once a while.