Issue87

Title Let local server send files, not only redirects
Priority wish Status chatting
Superseder Nosy List poeml, wildintellect
Assigned To poeml Keywords

Created on 2011-03-21.22:07:34 by poeml, last changed by wildintellect.

Messages
msg332 (view) Author: poeml Date: 2011-03-21.22:07:33
It would be useful to use the local server (the MirrorBrain host) not only for 
redirects, but also to send files, effectively turning it into a mirror. 

That's currently only possible by adding a separate vhost, which needs to be 
scanned like any other mirror. 

Here's an idea for a feature that would make it easier:


The local host could be listed in the mirror database like any other mirror. An 
identifier would be chosen that enables MirrorBrain to recognize that this 
"mirror" is actually itself. Either a "magic" identifier like 'direct-delivery' 
would convey this meaning, or an Apache directive "MirrorBrainLocalIdentifier" 
could specify this.
Then, MirrorBrain would read the needed geographical/network data from the 
mirror database like for any other mirror. During mirror selection, the mirror 
would be considered as usual. When it's chosen, MirrorBrain just needs to send 
the file instead of replying with a redirect. 

Seems to be easy to implement to me; and potentially very useful. The local 
mirror could be fully configurable and the mirror selection mechanism would 
cover all the little features like network locality, priorities and so on.
History
Date User Action Args
2011-03-21 22:13:55wildintellectsetnosy: + wildintellect
2011-03-21 22:07:34poemlcreate