[pca] new --threads config
Martin Paul
martin at par.univie.ac.at
Fri May 9 10:24:12 CEST 2008
Greg Matthews wrote:
> yup, ok. I thought it might be clever enough to parellise the download
> from sunsolve...
Any instance of pca-proxy.cgi will always download a single patch from
SunSolve, so threads within pca-proxy.cgi won't speed up anything.
What you *can* do is to use threads on the pca client. This will cause
multiple instances of pca-proxy.cgi to be spawned, which will result in
parallel downloads from SunSolve (unless the patches are at the proxy
already, of course).
> If I uncomment the threads directive, the apache error log throws this:
>
> [Thu May 08 15:27:02 2008] [error] [client a.b.c.d] Undefined subroutine
> &main::share called at /var/www/cgi-bin/pca-proxy.cgi line 215.
> [Thu May 08 15:27:02 2008] [error] [client a.b.c.d] Premature end of
> script headers: pca-proxy.cgi
It's a stupid bug in the threads code; I still wonder how this could
slip through. It shows up when a certain combination of options (threads
being one of them ) is used with pca (normal or proxy mode). It's fixed
now in the current development release of pca. Anybody using threads and
seeing the above error should use that version.
Thanks for the report!
Martin.
More information about the pca
mailing list