Nick,

Sorry for a late reply.

> We're using the very excellent amavisd-new 2.4.2 (Debian's latest version)
> with sophie as AV scanner.  Occasionally sophie gets into a state where it
> is accepting connections on the Unix socket but never replies to scan
> requests.
>
> Amavis times out OK on its first connection, but the retry never seems to
> time out.  See log example below.  Looking at the code, I can't see where
> alarm() is set up again in ask_daemon_internal after the eval exits.

You are right, the alarm is not restarted which lets the next attempt to run
with no time limit. This needs fixing.

> Sophie has a possible fix for this in v3.06beta which I am trying now but,
> considering how much pain these Amavis hangs have caused me and since it
> looks as if 2.4.4 has the same code, I hope it might be possible to add a
> fix in Amavis to make sure it times out on retries.

Will do. I'm just not sure whether I should bail out from the loop
when a timeout is hit, or would it be worth giving Sophie another chance.
If the later, time would need to be extended, and probably a time limit
on the first attempt should be shortened somewhat to accomodate a second 
attempt.

Did you have any experience whether Sophie will likely function normally
after timing out once?

  Mark

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to