fix(session): detect canceled lookup correctly#626
fix(session): detect canceled lookup correctly#626mmatous wants to merge 1 commit intofoxcpp:devfrom
Conversation
cancelation is not DNSError, so UnwrapDNSErr() returns "" as reason Signed-off-by: Martin Matous <m@matous.dev>
|
I'm having trouble reproducing this error. I prepared the following scripts to simulate your CI and test various go versions Usage e.g.: I install seemingly unnecessary packages for cases where I wanted to look around manually and running integration tests is left outside of build phase so it can be called in a loop. Or a different run: And even on current I only got consistent failures from go 1.20 onward and that was unit tests (likely expected for |
|
Cherry-picked into master as c67955e. Thanks! |
Hi, this will prevent
smtp: rDNS error {"reason":"","src_ip":"x.x.x.x:port"}for every incoming message.Weirdly, it didn't start appearing before using milter/rspamd. It should be fixed regardless, but I don't really know what changed. Maybe timeout expiring while waiting for rspamd response? Or rspamd hogging DNS resolver time for it's own checks.