https://bugzilla.novell.com/show_bug.cgi?id=656281
https://bugzilla.novell.com/show_bug.cgi?id=656281#c2
--- Comment #2 from Libor Pecháček 2010-11-30 17:11:15 CET ---
I also was not able to reproduce the issue early morning today, but after 10am
CET osc started to download zero-sized files. Seems to depend on the load.
Just for record, this script allows to reproduce the issue without osc.
Replace "user:pass" with your credentials.
L=0; CL=0; N=0; while test $L -eq $CL; do L=$(curl -D bs.trace -u 'user:pass'
https://api.suse.de/source/PTF:2282/kernel-source/postun.sh?rev=df97383ac5ca6710d7a881a9c42c7f23|wc
-c); CL=$(fgrep Content-Length: bs.trace | cut -f2 -d\ |tr -d \\n\\r);
N=$[$N+1]; echo $N
- $L/$CL; done
The number of iterations before it fails varies, and can be up to 1500.
Checking the Content-Length in osc is a good idea, thanks Adrian for
implementing it. BTW, it might be even better to retry upon receiving the
invalid header as osc users would not have to care about these intermittent
errors.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.