You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2008/09/16 02:57:29 UTC
[Bug 5975] New: spamc should failover if a host connects, but times
out
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=5975
Summary: spamc should failover if a host connects, but times out
Product: Spamassassin
Version: 3.2.5
Platform: Other
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: spamc/spamd
AssignedTo: dev@spamassassin.apache.org
ReportedBy: mrgus@disco-zombie.net
Created an attachment (id=4367)
--> (https://issues.apache.org/SpamAssassin/attachment.cgi?id=4367)
Simple daemon that opens connections and does nothing
If spamc is called with multiple hosts and -d, and a host opens the connection
but does nothing (too much load or what not) until the timeout is reached,
instead of failing over to the next server, the message simply isn't scanned.
As no communication with spamd actually occurred, this should be treated as if
spamc didn't manage to connect to spamd, and fail over to the next server.
You can test this behavior with the attached "jesus.c". Run it with the port as
the argument "jesus 587", and then run spamc -t 10 -d
hostrunningjesus.test.com,hostrunningspamd.test.com and you'll notice that the
message will never get processed through the second host.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 5975] spamc should failover if a host connects, but times out
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=5975
Karsten Bräckelmann <gu...@rudersport.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Karsten Bräckelmann <gu...@rudersport.de> 2008-10-08 09:56:52 PST ---
*** This bug has been marked as a duplicate of bug 5871 ***
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 5975] spamc should failover if a host connects, but times out
Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=5975
--- Comment #1 from mrgus@disco-zombie.net 2008-09-15 18:03:16 PST ---
Also, in case this is useful, I once made some modifications to an old spamc
(3.1.7 or 3.1.8, can't remember) that made the above work, but changes in spamc
made since then aren't really compatible with what I did. I just wrapped the
following around the call to message_filter in main():
---------------------
int h_tries = 1;
do
{
ret = message_filter(&trans, username, flags, &m);
memcpy(&trans.hosts[0], &trans.hosts[h_tries], sizeof(trans.hosts[h_tries]));
h_tries++;
} while( ret && trans.hosts[0].s_addr);
---------------------
This doesn't (necessarily) work now, because hosts may be an in_addr struct or
an addrinfo pointer to a struct.
--
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.