First Status Report

Warren Togami wtogami at redhat.com
Mon Jun 8 02:37:55 UTC 2009


On 06/07/2009 03:08 PM, Atul Aggarwal wrote:
> As per the Prototype Plan, following objectives as been achieved:
>
> 1. Creation of .torrent file based on the directory structure.
> 2. Web server glued with torrent library which shows files present in
> the torrent when called on $localion/torrent.
> 3. When clicked on the file present in the fake index file, it downloads
> the file.
>
> So as per the prototype plan, all goals has been completed (wrong?).

Where is the code?

> The only problem is that I am not able to detect when is the download
> over so that I can serve the file through the webserver. I am looking
> for it on apis and will talk to irc channel if I am still not able to do
> it.

Is the web server and torrent client running in the same process or 
different process?

The torrent client internally knows if a file is 100% downloaded.  The 
web server knowing if a particular file download is complete is a 
required feature for this prototype.

>
> I used mini_http project as the webserver as I found the code of
> mini_http simple. Now I can port it to lighttpd also (Should I?). I need
> to write plugin in lighttpd for torrent or I can modify existing file
> and directory plugin to accomodate the support of torrent.
>

If it is possible to implement entirely as a plugin for lighttpd, that 
might be desirable for an ideal implementation later as it might be 
easier to maintain.  (You don't need to maintain a fork of a web 
server.)  But for prototypes exploring concepts now, just do anything to 
make it work, and work on the features.

Warren Togami
wtogami at redhat.com




More information about the instantmirror-list mailing list