| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2006-01-16 | Implemented a service thread for operations such as testing piece hashes, | Richard Nyberg | |
| preallocating disk space, etc. Tweaked the cm <-> net api a bit. | |||
| 2006-01-16 | Unify the write and read structs. There was no good reason to keep them | Richard Nyberg | |
| separate. Improve the bts_seek so that it only calls close or lseek if necessary. Otherwise it's a nop. Hide bts_seek and instead make the offset explicit in calls to bts_get or bts_put. | |||
| 2006-01-16 | peer_on_no_reqs was called unsafely in peer_on_choke. It should only be | Richard Nyberg | |
| called after removing the last request. | |||
| 2006-01-16 | There should be one level of pointer indirection less for the arguments | Richard Nyberg | |
| of rate_cmp. Also the wrong variable was passed to peer_unchoke. s/unsigned/int where it makes sense. | |||
| 2006-01-16 | Add peer_full function. | Richard Nyberg | |
| 2006-01-16 | A peer needs to be removed from the peer list before being handed to | Richard Nyberg | |
| dl_on_lost_peer. Fix a type. | |||
| 2006-01-16 | Fix conditional I broke in r131. | Richard Nyberg | |
| 2006-01-10 | Removed code dealing with child processes; btpd doesn't use them anymore. | Richard Nyberg | |
| 2006-01-10 | Changed semantics of cancelled http requests. Before they were reported | Richard Nyberg | |
| as cancelled, or possibly ok or failed if the request had come that far. Now cancelled requests are silently discarded and doesn't execute the callback. This makes the http api easier to use. Updated the tracker code for the new http semantics. | |||
| 2006-01-09 | * Move the network related parts of the torrent struct to a sub struct. | Richard Nyberg | |
| * Move some struct and type definitions to net_types.h * Fix ul_on_lost_peer. I must've been very tired when I wrote it :P | |||
| 2006-01-09 | Fix compiler warnings. | Richard Nyberg | |
| 2006-01-09 | Rename tp->cp to tp->cm. | Richard Nyberg | |
| 2006-01-09 | Rename p->net to p->in and net_state to input_state. Move code to where it | Richard Nyberg | |
| belongs. | |||
| 2006-01-09 | Better tracker code. Mostly done but needs a little more work. | Richard Nyberg | |
| It now uses the new http thread instead of forked proceses for tracker requests. | |||
| 2006-01-09 | Move finished http requests to a queue and post the whole queue at once. | Richard Nyberg | |
| This can potentially reduce the time the http thread keeps the post lock and the httpq lock. | |||
| 2006-01-08 | OMG! It's a new year already! ;) | Richard Nyberg | |
| Update the copyright. | |||
| 2006-01-07 | Nicer code for the http thread. | Richard Nyberg | |
| 2006-01-06 | * Added a method for other threads to execute callbacks in the main thread. | Richard Nyberg | |
| * Added a thread and api for http requests. The thread uses the curl multi interface and will be used by the tracker code. The tracker code currently use forked processes to do its bidding. | |||
| 2006-01-06 | Added BTPDQ_FOREACH_MUTABLE list macro. | Richard Nyberg | |
| 2006-01-06 | Sort. | Richard Nyberg | |
| 2006-01-04 | Remove use of the ugly PRI* print macros. | Richard Nyberg | |
| 2006-01-04 | o Use the new cm_* content api. | Richard Nyberg | |
| o Unhook cli_if.c from build temporarily. It needs to be fixed. o Torrent meta data is now kept in subdirectories to $BTPD_HOME/library. o Added some very incomplete life cycle logic for torrents. | |||
| 2006-01-04 | New api for managing the content of a torrent. It'll keep track of which | Richard Nyberg | |
| pieces we and blocks we have, it'll do the writing and reading from disk and test pieces against their hashes. This is only a dummy implementation of the api. I'll flesh it out in subsequent commits. | |||
| 2006-01-04 | Don't write the rates to the log anymore. | Richard Nyberg | |
| 2006-01-04 | Fixed a broken loop. I must have forgotten that the loop variable was | Richard Nyberg | |
| unsigned when I wrote it :P | |||
| 2006-01-03 | o Removed an unused function. | Richard Nyberg | |
| o Made bit field argument to has_bit const since the function doesn't modify it. | |||
| 2005-12-17 | First stab at a choke algorithm for all peers. In previous versions choking | Richard Nyberg | |
| was done per torrent. | |||
| 2005-12-14 | Add and use rand_between. | Richard Nyberg | |
| 2005-12-02 | * Some code shuffle and removal of dead code. | Richard Nyberg | |
| * Add net_active flag to simplify removal of peers when shutting down the net for a torrent. | |||
| 2005-12-01 | Rates should be unsigned long. Compute total, torrent and peer rates. | Richard Nyberg | |
| 2005-12-01 | dl_on_lost_peer must remove the peer from the list. This was accidentally | Richard Nyberg | |
| removed in a previous commit. Fix indentation. | |||
| 2005-12-01 | Fix an unsafe loop. | Richard Nyberg | |
| 2005-11-30 | The mega whitespace patch. | Richard Nyberg | |
| Tabs have been converted to spaces and trailing whitespace have been removed. I have fixed my emacs settings now :P | |||
| 2005-11-30 | * Added net_(add|del)_torrent. net_add_torrent enables p2p for a torrent | Richard Nyberg | |
| and net_del_torrent does the opposite (surprise!). * Some code shuffle has been done to separate net_ and dl_ from torrent_ but there's still much to be done. * Removed a couple of dead vars from struct torrent. | |||
| 2005-11-29 | * Removed the heartbeat and btpd_seconds. Note that this breaks the tracker. | Richard Nyberg | |
| * Renamed the policy* files to upload* and download*. * The upload (un)choker is now global instead of per torrent. The algorithm is not yet implemented however. To be continued... | |||
| 2005-11-27 | * Get rid of net_bw_hz and run the bw stuff at one hz. | Richard Nyberg | |
| * The peer rates are now only updated when data transfer is enabled in the corresponding direction. They are also computed differently from before. The rates are computed in the bw callback once a second. This facilitates later improvements in the choke algorithm. | |||
| 2005-11-27 | More name changes from "cm_" to more appropriate names. | Richard Nyberg | |
| 2005-11-27 | Rename the list of torrents. | Richard Nyberg | |
| 2005-11-27 | This is very much a intermediate commit. | Richard Nyberg | |
| * Load "test" torrent on start. * Look for content and resume in the right places. | |||
| 2005-11-14 | Use a flag (PF_DO_UNWANT) to indicate that we should send an uninterest | Richard Nyberg | |
| message when we no longer have any pending requests. This fixes a bug where two uniterest messages were sent to a peer that was no longer wanted in endgame. | |||
| 2005-11-07 | Just bump version number. | Richard Nyberg | |
| 2005-11-07 | Step one of many to make the sub systems more modular. This commit gets | Richard Nyberg | |
| rid of the global btpd struct. Some fields in the struct got a corresponding global variable whereas some was made static and moved to a module. The bandwidht algorithm also got tweaked. It now tries to fire the event at specific times. This was to make the code simpler. It'll probably have to be tweaked again :P First step to make btpd run from a directory where it'll keep the log, socket, configuration, data on the known torrents, etc. Btpd now uses flock on the pidfile instead of connecting to the socket in order to be reasonably sure that no other btpd runs in the same directory. | |||
| 2005-10-10 | Set version to 0.7. Update CHANGES. | Richard Nyberg | |
| 2005-10-08 | Add a new net state to get the index and begin fields from piece messages | Richard Nyberg | |
| before we read the piece data. This can be used to test for junk earlier. | |||
| 2005-10-08 | Have a peer event for keep alives too. Its only function is to log atm. | Richard Nyberg | |
| 2005-10-08 | Wait until we don't have any unanswered requests on a peer before | Richard Nyberg | |
| sending an uninterest message. | |||
| 2005-10-08 | Log keep alives. | Richard Nyberg | |
| 2005-10-08 | Accept pieces even if they arrive in a different order than the | Richard Nyberg | |
| requests were sent. | |||
| 2005-10-08 | Logging. | Richard Nyberg | |
| 2005-10-08 | Remove unsent requests from the write queue when we receive a choke. | Richard Nyberg | |