https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8044
--- Comment #18 from Sidney Markowitz <[email protected]> --- Henrik, flush_responses in DnsResolver.pm is your code and I'm not that familiar with socket stuff. I have confirmed that MSG_DONTWAIT doesn't exist in Windows perl versions. As a macro, it looks like the only way to test if it exists is in an eval, e.g. my $recvflags = 0; eval {$recvflags = MSG_NOWAIT}; And then, I guess, like in https://github.com/p5-RedisDB/RedisDB/blob/master/lib/RedisDB.pm#L423-L442 use something like $self->{sock}->blocking(0) unless ($recvflags); and then set it back later $self->{sock}->blocking(0\1) unless ($recvflags); Can you do that? I don't know enough to be sure where in the code is the best place to put it without breaking flush_response. -- You are receiving this mail because: You are the assignee for the bug.
