Hi all,
I?ve updated my local repository with version from 05/01/26 0:00 CET
My test - torrent is very active, so Azureus gets an average download of
40kb/s after a few seconds running, and up to 90kb/s after two minutes.
Rubytorrent has not even 1 piece after fifteen minutes. It gets
connected to 12 or 15 peers but the download ratio is always below
2kb/s. From my point of view there is a long break while trying to
connect to a peer. I didn`t watch the code but there seems to happen
nothing for at least half a second. And much more than half of all
connects fails. Maybe Ruby threads under Windows didn`t perform as they
should?
[snip]
I?ve watched a little more the debugging output and it seems that all
connections, rubytorrent actually has, are established by remote peers.
No connection from me to other peers a successfull ??
[snip]
Ok, now I have about 20 connections and a download ratio of 19kb/s.
Thats near the maximum of 20kb/s. My console is flooded with incoming
and outgoing blocks as long as no new connections are going to be
established. If so, everything stops up to 20 seconds.
I keep on testing..
attached, some error messsages appeared during testing...
Andreas
==========================================================================================
couldn''t connect to peer 138.217.126.134:6346
./rubytorrent/server.rb:108:in `accept'': An operation was attempted on
something that is not a socket. (Errno::ENOTSOCK)
from ./rubytorrent/server.rb:108:in `receive''
from ./rubytorrent/server.rb:81:in `start''
from ./rubytorrent/server.rb:79:in `initialize''
from ./rubytorrent/server.rb:79:in `new''
from ./rubytorrent/server.rb:79:in `start''
from ./rubytorrent.rb:59:in `initialize''
from D:/rubyt/rubytorrent/rtpeer.rb:71:in `new''
from D:/rubyt/rubytorrent/rtpeer.rb:71
==========================================================================================
* calculating optimistic unchokes...
* anti-snubbing mode, 0 extra optimistic unchoke slots
connected to peer 68.63.255.20:23628
* recalculating piece popularity...
Exception `NoMethodError'' at ./rubytorrent/controller.rb:69 - undefined
method `each'' for nil:NilClass
./rubytorrent/controller.rb:69:in `each'': undefined method
`each'' for
nil:NilClass (NoMethodError)
from ./rubytorrent/controller.rb:305:in `each_wanted_block''
from ./rubytorrent/peer.rb:506:in `get_want_blocks''
from ./rubytorrent/peer.rb:464:in `handle_message''
from ./rubytorrent/peer.rb:342:in `input_thread_step''
from ./rubytorrent/peer.rb:154:in `start''
from ./rubytorrent/peer.rb:152:in `initialize''
from ./rubytorrent/peer.rb:152:in `new''
from ./rubytorrent/peer.rb:152:in `start''
... 17 levels...
from ./rubytorrent/server.rb:61:in `add_torrent''
from ./rubytorrent.rb:62:in `initialize''
from rtpeer.rb:71:in `new''
from rtpeer.rb:71
Exception `ThreadError'' at c:/ruby/lib/ruby/1.8/thread.rb:112 - killed
thread