Re: InstantMirror initial source repo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 12:53 AM -0500 11/21/07, Warren Togami wrote:
>bzr branch http://fedorapeople.org/~wtogami/temp/InstantMirror/
>It will be located here until the official hosted repository is created.
>
>cd InstantMirror
>./mkdist --force
>rpmbuild -ta /tmp/InstantMirror-0.1.tar.bz2
>rpm -ivh /path/to/InstantMirror-0.1.noarch.rpm
>vim /etc/httpd/conf.d/InstantMirror.conf
>service httpd restart (will probably fail due to SELinux denial)
>
>Unfortunately, I discovered that the ApacheMirror.py (renamed
>InstantMirror.py in this repo) has a critical bug that makes it unusable
>in current form.  From the TODO file:
>
>BUGS TO FIX TO MAKE IT ACTUALLY WORK
>- wget --server-response http://PATH/TO/LARGE/FILE
>   It constantly redirects over and over again rather than waiting.
>   FILE.tmp never gets larger than 8192 or 16384 bytes.
>- We MUST find a way so the client can begin downloading the file while
>the mirror downloads the file.  Any other reverse proxy server would
>allow this.  This might be difficult to implement (perhaps impossible
>with mod_python?) but this might be the only sane way to fix the
>previous problem.

I'm new to mod_python, but it is documented to be able to do /anything/
that could be a response from Apache.  If the handler were to fetch the
data itself it could write a local file and also return the data to the
client, by calling urlopen() and then read(), write(), and req.write()
repeatedly.  I don't know if the reads and writes will overlap.
-- 
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson@xxxxxxxxxxxxxxxxx>
      '                              <http://www.georgeanelson.com/>

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux