Ok it works. I made a new caldav working directory at r3474 and applied your fix by hand, the server worked succesfully. I updated it to HEAD version and it worked succesfully also. Now I'll consider patching the deployed server to the HEAD revision. I'll find a way to patch (locally) the server to autodetect correctly the number of processors on FreeBSD as I'm loosing performances I think. I'll say when I found the answer to this problem. Cyrus Daboo a e'crit :
Hi Bastien,
--On January 22, 2009 11:36:29 AM +0100 Bastien Semene <bsemene@cyanide-studio.com> wrote:
This is a change to the number of processes. I'm not an expert in Python and programing generally speaking. I know the GetNCPU function doesn't work on FreeBSD 7.0, as reported in the logs. So I tried to bypass the change by setting 'ProcessCount == 1' and 'MinProcessCount == 1' in config.py to match the current number of processes in my version. But it doesn't work. I tried with 'ProcessCount == 1' and 'MinProcessCount == 1', same result.
I'm now blocked since I don't know what to test. I'll be glad if someone can help.
I just committed a fix in r3607. Please give that a try.
NB To get it working without that fix you need to edit your caldavd.plist file and set the "ProcessCount" key value to 1 (or more) there. That value will override what is in config.py as a default.