Re: [AMaViS-user] Need help to overcome "Error closing main::stdin: Bad file descriptor"

This is a discussion on Re: [AMaViS-user] Need help to overcome "Error closing main::stdin: Bad file descriptor" within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Ralph and others, > > from myself: > > > For now, removing the status test or sticking to 0....


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-14-2006
Mark Martinec
 
Posts: n/a
Default Re: [AMaViS-user] Need help to overcome "Error closing main::stdin: Bad file descriptor"

Ralph and others,

> > from myself:
> > > For now, removing the status test or sticking to 0.90 is a workaround.
> > > Will investigate later on.

>
> It is more tricky than it appeared to make the same code work correctly
> under 0.90 as well as under 0.91. The post_process_request_hook fails
> to close socket under 0.91, so smtp QUIT command no longer drops the
> session. Luckily Postfix does not mind, but it is wrong anyway.


A workaround for this bug in 0.91 (not closing a connection) is quite
straightforward (the bug will be fixed in 0.92), but as a next obstacle
there are some conflicts between the new use of file descriptors
in Net::Server 0.91 and the way file descriptors are assigned when
spawning external programs, both by amavisd itself and by SpamAssassin.
This is not a bug in Net::Server, just a compatibility issue.
The "Error closing main::stdin: Bad file descriptor" is just
a (trivially fixed) tip of the iceberg.

The fix is nontrivial, so my intention is to get the 2.4.0
out on the street pretty fast, and not to bother with preparing,
testing and releasing a patched 2.3.3. People that want to
stick with 2.3.3 should not upgrade Net::Server beyond 0.90,
which is the last version under which 2.3.3 works reliably
in all setups. Port maintainers are of course free to patch
older port if they so desire.

Mark


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=...720&dat=121642
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/...fo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:15 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0