(Sorry about the confirmation sent to the list, I wasn't aware that I 
hit "reply all")

Hi,

I'm trying to load-balance several spamd hosts using a tcp-proxy (balance and 
crossover) to have more control about balancing than just with randomized DNS 
entries... but I ran into (the same) problems with both the proxy tools I 
tried.

Connecting to the load-balanced port using telnet and manually send a "PING 
SPAMC/1.3" returns "SPAMD/1.2 0 PONG" as expected - so does when connecting 
spamc directly to a backend... but connecting to the proxy address 
immediately returns "0/0" (but no connection error or something, the proxy 
status also said the connection was made sucessfully).

Looking through the logs reveals, that the request was successfully handled by 
spamd:

[534] info: spamd: identified spam (20.0/5.0) for root:1005 in 2.4 seconds, 

but spamc exits before that line appears in debug output of spamd, it seems 
that the connection got killed somewhere before spamd could send back the 
results... but the only suspicious log entry I found is:

[534] dbg: prefork: sysread(7) not ready, wait max 300 secs

which does not appear when connecting spamc directly to the spamd host.

Any idea why the telnet connection works, but spamc does not? Does spamc or 
spamd use a special socket option I should be aware of when using it with a 
tcp proxy? 

Many thanks,
Matthias

Reply via email to