question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A seeding client refuses to seed

See original GitHub issue

Looks like I’ve hit a new issue. The seeding client refuses to seed one of the auto generated torrents. There’s no errors generating it nor adding it, and the tracker works fine. The peer connects to the seed, but the seed closes the connection immediately (tested both in a monotorrent client and uTorrent 2.2.1, in monotorrent the seed gets removed from the peers list immediately after it’s added while uTorrent periodically tries to connect but the seed closes the connection immediately).

The torrent contains a very large amount of small files, it’s 163KB with only V1 hashes. I’m guessing it’s something about that. Other torrents generated in the same way seed fine. There’s nothing in the log outside of this:

Client log:

[18:56:37] INFO: ConnectionManager:ipv4://xx.xx.xxx.xxx:15847/: Connection opened
[18:56:37] INFO: ConnectionManager:ipv4://xx.xx.xxx.xxx:15847/: [outgoing] Sending handshake message with peer id '-MO3000-374654087375'

Server log:

INFO: ListenManager:ipv4://yyy.yyy.yy.yyy:51952/: ConnectionReceived

Packet dump: stuck.zip

Issue Analytics

  • State:closed
  • Created 8 months ago
  • Comments:17 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ManlyMarcocommented, Feb 6, 2023

It looks like no exceptions are thrown when this happens.

It seems that after restarting the server side app, the seed always works fine, but it stops working after either restarting the client and starting the download over a few times, or after letting the seed idle for a while, not sure which one. It could also just be luck, but once it stops working it stops working for good, maybe it’s something related to open connections?

If you have any test builds I could try to find the issue, let me know.

Edit: This issue is constrained to a particular torrent - with multiple torrents being seeded if I manage to get the bug to happen it only happens for a single torrent (unless I manage to trigger it again with another torrent). When the bug is active, it looks like no one can download the bugged torrent from the seed, even if it’s their first time connecting (they can download other non-bugged torrents just fine).

Edit2: Could this be related to the max open file limit? I just noticed I had it set to 200 while the torrents easily surpassed that. I’ll try bumping the value up and see what happens. When testing I was using only one client, downloading one torrent (but I had all torrents added to the client and started to seed them, so the seed shouldn’t be affected by that).

0reactions
ManlyMarcocommented, Feb 18, 2023

Everything works fine in my app now on the latest master builds, so I’ll close this issue.

@rjclarkewp007 If it never connects then maybe ports it tries to use are closed on both sides. If you still have this issue I think you should open a new issue since this one got a bit off topic.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't connect to seeds : r/torrents
The answer is most likely that they are maxed out on sharing slots, they are seeding but only when their queue frees up....
Read more >
Torrent client: question on seeds and why many are shown ...
Seeds can refuse to connect with you and give you data, temporary or permanently, the torrent may report 1 seed but that seeder...
Read more >
Why why why won't Transmission seed?
Got into Transmission from Vuze/Azureus because I heard it was less of a memory hog, better options, etc. I have to say I've...
Read more >
QBittorent won't upload and seed · Issue #11962
I am showing "Seeding" to 100+ torrents. What I see is that it tries to connect to a leech peer, shows their IP...
Read more >
The torrent is seeding in my torrent client but others can't ...
The torrent is seeding in my torrent client but others can't download the files, how to seed correctly?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found