Loggerhead question
Matt Nordhoff
mnordhoff at mattnordhoff.com
Fri Oct 23 15:28:04 BST 2009
John Arbash Meinel wrote:
> Matt Nordhoff wrote:
>> Russel Winder wrote:
>>> Is there a way of setting up Loggerhead with Apache that allows the same
>>> URL to be used for browsing using a browser and branching using bzr or
>>> Bazaar Explorer.
>>>
>>> I have Loggerhead working fine on xxxx:8080/Bazaar/Project and pointing
>>> Epiphany at it does everything required. However doing "bzr info
>>> xxxx:8080/Bazaar/Project" gives the "not a branch" error.
>>>
>>> Thanks.
>> You can configure Apache to handle requests with "/.bzr/" in them itself
>> instead of passing them to Loggerhead.
>
>> Or, Loggerhead supports serving branches over HTTP, over both the dumb
>> and smart servers. Maybe your Loggerhead is too old for that?
>
>
> What implementation does loggerhead use for serving branches over a dumb
> http request?
>
> My concern is that it is using the built-in HTTPServer (or whatever it
> is called), which does *not* support range requests.
>
> Which means that every time we ask "give me 100 bytes in the middle of
> this pack file" it returns "here are the 100MB for the pack file, you
> sort it out".
>
> Which "works" for some value of working. I would offer that the value of
> working under those conditions is such that you should probably disable
> it, and require using the smart requests...
>
> John
> =:->
It uses paste.urlparser.make_static(). Dunno how that handles Range
requests.
Having a smart server without a dumb server isn't nice for users. They
have to specify "bzr+http" URLs instead of "http" magically working.
(ISTM that the "http" implementation uses dumb requests for VFS, um,
requests, which makes sense, since the hpss has more overhead.)
--
More information about the bazaar
mailing list