What happen if set upload to zero?

Discussion of Transmission that doesn't fit in the other categories
Post Reply
ggber
Posts: 1
Joined: Thu Jan 28, 2016 11:50 am

What happen if set upload to zero?

Post by ggber »

Hi,

I'm wonder what would happen if I set upload rate to 0. So I will never share any chunk of file, but I'd expose the file to the tracker?
How it could work? I was thinking that when I am in leecher state I have to share a file. If I'd not do that, I will never be able to download the file.

How it is different from old project bitthief where the soft try to cheat and even not to expose the file name that is being downloaded.

Best regards,
ggber
cfpp2p
Posts: 290
Joined: Sat Aug 08, 2009 3:14 pm

Re: What happen if set upload to zero?

Post by cfpp2p »

So what happens?
Tested with current trunk.
If global up or down speed limit is set to zero all protocol messages up and down
(including magnet link data; [currently treated as such]) are transferred
even when either zero speed is set. Torrent pieces for the corresponding
zero up/down are NOT transferred, but is OK for the non zero up/down.
For example you'll always transfer and receive magnet link metadata
no matter what and if global speed down is zero you'll upload torrent pieces
just fine as long as there's a non zero up speed limit set.

Individual torrent up/down speed can NOT be zero as if either up or down
is zero ALL protocol messages and ALL torrent piece transfer will cease.
Setting speed zero for individual torrent(s) overrides the global speed
zero behavior and everything stops. So you can get an inconsistent behavior
like torrent upload speed set to non zero while global upload is zero
results in the global behavior described above, while a
torrent upload speed zero disables the global behavior and then
ALL protocol messages and ALL torrent piece transfer will cease.

You can see why all of this is if you analyze the code.

It's not too difficult to patch so that per-torrent behavior is
consistent with the global speed limit behavior.

references:

https://trac.transmissionbt.com/ticket/1429
https://trac.transmissionbt.com/changeset/7064

https://trac.transmissionbt.com/ticket/1593
https://trac.transmissionbt.com/changeset/7366

https://trac.transmissionbt.com/ticket/1624
https://trac.transmissionbt.com/ticket/1889
https://trac.transmissionbt.com/changeset/8021

https://trac.transmissionbt.com/ticket/2068#comment:3

https://trac.transmissionbt.com/ticket/3155

https://trac.transmissionbt.com/ticket/3902

viewtopic.php?p=31531&sid=c0131328a4439 ... ef4#p31531

And the discussion here; it's the code that also stops transfer, not just the 'tit-for-tat' that stops things.
https://trac.transmissionbt.com/wiki/Ze ... on=history
Post Reply