Skip to content

Commit

Permalink
Filehandle timeouts
Browse files Browse the repository at this point in the history
Helps avoid rare race condition. In the future, pieces are cached a
while before being written and some blocks are kept in memory so we
don't need to read them.
  • Loading branch information
sanko committed Sep 6, 2012
1 parent f35ec1c commit 3a981b3
Show file tree
Hide file tree
Showing 2 changed files with 142 additions and 120 deletions.
179 changes: 94 additions & 85 deletions Changes
@@ -1,85 +1,94 @@
Version 0.1.8 | After supper on July 20th, 2012 | xxxxxxxxxx

API Changes/Compatibility Information:
* Fix stupid dev code that prevented subclasses of AB from working

Version 0.1.7 | Early morning, July 12th, 2012 | fc6b65c48b

Protocol/Behavioral Changes:
* Small steps forward on IPv6 support

Documentation/Sample Code/Test Suite:
* Document $client->trackers( )

Notes:
* London, baby!

Version 0.1.6 | Late evening on May 4th, 2012 | c32e8a7519

Resolved Issues/Bug Fixes:
* It's spelled "pieces"... oy

Documentation/Sample Code/Test Suite:
* Resolves issue #1
* Switch swarm tests to torrent by CC-friendly, punk band Sick of Sarah

Version 0.1.5 | Half past one on December 29th, 2011 | 63d7040198

Protocol/Behavioral Changes:
* Choke packets from fast peers no longer clear outstanding requests

Version 0.1.4 | Seven something on December 27th, 2011 | 407b3316ef

Protocol/Behavioral Changes:
* Basic support for BEP 06 (Fast Peers Ext)
* File based download priority (...no public API yet)

Documentation/Sample Code/Test Suite:
* Tiny, local HTTP tracker used in tests should work with Mouse

Version 0.1.3 | December 23rd, 2011 around eightish at night | 8930180a08

API Changes/Compatibility Information:
* New piece_cache( ), seed( ), and complete( ) methods
* New state piece_cache parameter to new( )
* Calculation of wanted( ) takes file priorities into account (0=!wanted)

Protocol/Behavioral Changes:
* HAVE packets are only sent to non-seed peers
* Changed Peer ID format

Documentation/Sample Code/Test Suite:
* Adding test for unchoke and seeding capability

Version 0.1.2 | Early golden time on December 20th, 2011 | afb72191bc

API Changes/Compatibility Information:
* New start( ), stop( ), pause( ), and state( ) methods
* New state parameter to new( )

Resolved Issues/Bug Fixes:
* Correct stopped and complete events are sent to tracker when required
* Fixed compat on perl 5.010
* HTTP trackers function as described in BEP03 and BEP12
* Filehandles are cached so we don't reopen files every time we need them

Version 0.1.1 | Early afternoon on December 19th, 2011 | 4de209b886

API Changes/Compatibility Information:
* It exists!

Resolved Issues/Bug Fixes:
* None yet!

Protocol/Behavioral Changes:
* It... exists?

Documentation/Sample Code/Test Suite:
* Guess.

Notes:
* Nothin'...

_ -.-. .... .- -. --. . ... _________________________________________
For more information, see the commit log:
http://github.com/sanko/anyevent-bittorrent/commits/
Version 0.1.9 | Soon | xxxxxxxxxx

Protocol/Behavioral Changes:
* Open filehandles timeout:
- 500s when opened for read
- 500s delay after every read
- 60s when opened for write
- 120s delay after every write

Version 0.1.8 | After supper on July 20th, 2012 | f35ec1c774

API Changes/Compatibility Information:
* Fix stupid dev code that prevented subclasses of AB from working

Version 0.1.7 | Early morning, July 12th, 2012 | fc6b65c48b

Protocol/Behavioral Changes:
* Small steps forward on IPv6 support

Documentation/Sample Code/Test Suite:
* Document $client->trackers( )

Notes:
* London, baby!

Version 0.1.6 | Late evening on May 4th, 2012 | c32e8a7519

Resolved Issues/Bug Fixes:
* It's spelled "pieces"... oy

Documentation/Sample Code/Test Suite:
* Resolves issue #1
* Switch swarm tests to torrent by CC-friendly, punk band Sick of Sarah

Version 0.1.5 | Half past one on December 29th, 2011 | 63d7040198

Protocol/Behavioral Changes:
* Choke packets from fast peers no longer clear outstanding requests

Version 0.1.4 | Seven something on December 27th, 2011 | 407b3316ef

Protocol/Behavioral Changes:
* Basic support for BEP 06 (Fast Peers Ext)
* File based download priority (...no public API yet)

Documentation/Sample Code/Test Suite:
* Tiny, local HTTP tracker used in tests should work with Mouse

Version 0.1.3 | December 23rd, 2011 around eightish at night | 8930180a08

API Changes/Compatibility Information:
* New piece_cache( ), seed( ), and complete( ) methods
* New state piece_cache parameter to new( )
* Calculation of wanted( ) takes file priorities into account (0=!wanted)

Protocol/Behavioral Changes:
* HAVE packets are only sent to non-seed peers
* Changed Peer ID format

Documentation/Sample Code/Test Suite:
* Adding test for unchoke and seeding capability

Version 0.1.2 | Early golden time on December 20th, 2011 | afb72191bc

API Changes/Compatibility Information:
* New start( ), stop( ), pause( ), and state( ) methods
* New state parameter to new( )

Resolved Issues/Bug Fixes:
* Correct stopped and complete events are sent to tracker when required
* Fixed compat on perl 5.010
* HTTP trackers function as described in BEP03 and BEP12
* Filehandles are cached so we don't reopen files every time we need them

Version 0.1.1 | Early afternoon on December 19th, 2011 | 4de209b886

API Changes/Compatibility Information:
* It exists!

Resolved Issues/Bug Fixes:
* None yet!

Protocol/Behavioral Changes:
* It... exists?

Documentation/Sample Code/Test Suite:
* Guess.

Notes:
* Nothin'...

_ -.-. .... .- -. --. . ... _________________________________________
For more information, see the commit log:
http://github.com/sanko/anyevent-bittorrent/commits/

0 comments on commit 3a981b3

Please sign in to comment.