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

Re: Serf / libsvn_ra_serf doesn't work with Squid-fronted Apache

From: Lieven Govaerts <svnlgo_at_mobsol.be>
Date: Mon, 13 Oct 2008 13:30:24 +0200

Arfrever Frehtes Taifersar Arahesis wrote:
> Serf / libsvn_ra_serf doesn't work with Squid-fronted Apache:
>
> $ svn ls http://overlaystest.gentoo.org/svn/proj/python
> svn: XML parsing failed: (411 Length Required)
> $
>
> This problem was originally reported in:
> https://bugs.gentoo.org/show_bug.cgi?id=241234
>
> Robin Johnson <robbat2_at_gentoo.org> wrote in that bug report:
>> Doing a tcpdump on during the co request, and comparing the requests, the Neon
>> version sends PROPFIND with Content-Length, while serf sends PROPFIND without
>> Content-Length, which thus upsets squid.
>

The cause of this problem is that serf uses chunked encoding, a HTTP/1.1
feature that Squid doesn't support:
http://wiki.squid-cache.org/Features/HTTP11?highlight=%28chunked%29

While adding HTTP/1.0 fallback in serf has been discussed, no one is
working on it.

There are two workarounds:
- use ra_neon instead of ra_serf.
- switch from squid to a HTTP/1.1 proxy, like apache+mod_proxy.

I've updated serf issue 28 at
http://code.google.com/p/serf/issues/detail?id=28 to keep track of this
issue.

Lieven

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-10-13 13:29:42 CEST

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

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