Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repackage URIBL as npm plugin #3077

Merged
merged 6 commits into from
Jul 25, 2022
Merged

Conversation

msimerson
Copy link
Member

@msimerson msimerson commented Jul 23, 2022

The only timer in the plugin (in do_lookups) wasn't consistently started at the beginning of plugin hooks. On the lookup_rdns hook, the function first did a rDNS lookup, which took some variable amount of time, then launched do_lookups, which did some more lookups, this time with a timer, but the timer wasn't shorter than the plugin timeout, so you could easily get DNS timeout errors in the logs.

Checklist:

  • docs updated
  • tests updated
  • Changes updated

- uribl: only register hooks when URIBL zones are configured
- uribl: timeout DNS 1 second before plugin
@msimerson msimerson marked this pull request as ready for review July 23, 2022 03:22
so that timers will fire before plugin times out
@haraka haraka deleted a comment from lgtm-com bot Jul 25, 2022
@lgtm-com
Copy link

lgtm-com bot commented Jul 25, 2022

This pull request fixes 1 alert when merging 76855d0 into e5e679e - view on LGTM.com

fixed alerts:

  • 1 for Useless assignment to local variable

@msimerson msimerson changed the title uribl: load .ini file to plugin.cfg repackage URIBL as npm plugin Jul 25, 2022
@haraka haraka deleted a comment from lgtm-com bot Jul 25, 2022
@msimerson msimerson merged commit 7ddc997 into haraka:master Jul 25, 2022
@msimerson msimerson deleted the uribl-overhaul branch July 25, 2022 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Haraka crashes when connecting IP cannot be resolved
1 participant