[pca] Downloading big patches

Martin Paul martin at par.univie.ac.at
Mon Nov 17 14:49:32 CET 2008


Jan Holzhueter wrote:
> is it possible to implement some feedback from the proxy to the client
> when it's still downloading a big patch :)

Not easily. As it is now, pca handles the download by starting wget and 
then waiting until it returns, which happens when the patch has been 
downloaded completely or it has failed.

To do anything while wget is running, pca would have to spawn it as a 
separate thread or process. It could then provide feedback (and check 
for wget still running) in a loop, but this opens up a can of possible 
problems I don't even want to think about :)

Personally, I run the pca-proxy.cgi in debug mode (set "debug=1" in 
pca-proxy.conf). So if I want to see what's going on, I use "tail -f 
/tmp/pca-proxy-debug.txt". Maybe that's an option for you, too.

Martin.



More information about the pca mailing list