https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6221

--- Comment #13 from Sidney Markowitz <[email protected]> 2010-01-27 13:03:15 
UTC ---
As we discuss this, I'm remembering more from when I worked on bug 4620.
SpamAssassin selects a port number at random and then increments from there.
That is to keep two processes from working in the same range of ports.

If, as you say for Linux, the counter that iterates through port numbers is
system wide and not per process, then this would not be necessary and I think
your patch would work and would be better.

I don't think that we can count on that behavior. I certainly didn't see it in
the tests I ran for bug 4260. When I did that I was testing under Cygwin on
Windows and Fedora Core 3. It would be good to have a simple test that shows
how the port selection goes with repeated UDP port 0 socket creation across
different processes, and test that on different platforms.

Your idea of making it a configuration option may be the way to go if it is
possible to easily test what a particular system's behavior is, even if it is a
test that a sysadmin has to run manually to help decide how to set the
configuration option.

-- 
Configure bugmail: 
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to