[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Could not read chunk size: connection was closed by server on Windows 7

From: Michael Zender <michael.zender_at_mos-tangram.com>
Date: Thu, 7 Feb 2013 14:18:15 +0000

Hello everyone,

a couple of days ago, I configured our apache webserver to serve our
internal subversion repositories over plain old http. Before that, the
repositories have only been accessible using https. Everything seemed to
work pretty smoothly but after a couple of hours I had more and more
complaints about problems that occurred while working (svn co, svn ls
-v) with directories containing a large number of files (> 3000).

The error message reported was something like the following:
svn ls http://<servername>/<repourl>/<repopath> -v
svn: PROPFIND of '/<repourl>/!svn/bc/<rev>/<repopath>': Could not read
chunk size: connection was closed by server (http://<servername>)

svn co http://<servername>/<repourl>/<repopath>
svn: REPORT of '/<repourl>/!svn/vcc/default': Could not read chunk size:
connection was closed by server (http://<servername>)
An interesting fact about the checkout is, that the working copy has
been created and so far I've had no problem with it.

I started investigating and was able to reproduce the problem first in
the live environment before replicating it on a completely different
server. The specs are:
OS: Debian GNU/Linux 6.0.6 (squeeze)
Webserver: Apache/2.2.16
Subversion: svn, version 1.6.12 (r955767)

I created a test repository with the following script
svnadmin create project_Test
chown www-data:www-data project_Test -R
svn co file:///var/lib/subversion/project_Test wc_project_Test
cd wc_project_Test
mkdir src
for i in {1..1000}
do
        head -c 10K < /dev/urandom > src/testfile$i.dat
done
svn add src
svn ci -m "test commit"

The script creates a new repository "project_Test" containing a src
directory with 1000 10kB files with random content.

And made it available in via apache using the following VirtualHost
configuration:

<VirtualHost *:80>
        ServerName svntest

        <Location /svn>
                DAV svn
                SVNParentPath /var/lib/subversion/
                SVNListParentPath On
        </Location>
</VirtualHost>

With this setup I was able to reproduce the checkout problem. I
increased the number of files in the directory to up to 4500 but as of
now, I've not been able to reproduce the svn ls -v problem.

I did a lot of analysis and my conclusion is, that the problems only
occur on Windows 7 using any client software we have in use (Eclipse
integrated client, TortoiseSVN, sv command line client). On WindowsXP
as well as on Linux, there's no problem at all working with the
repository using http communication. When I execute the svn co operation
on a debian system installed on a VirtualBox VM hosted on my Windows 7
I have the same problem as directly on the Windows 7 client.

I know that there are a lot of emails on this list describing the same
error message and I spent quite some time to scan through them and to
follow the links but so far none of them contained a solution for my
particular problem.

I'll also gladly provide any further information that you find useful to
further analyze the problem.

Thank you very much in advance for your help!

Michael
Received on 2013-02-07 15:18:52 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.