-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download not starting when using standalone client with private runtime #34
Comments
Hi @bbijelic , You should enable bootstrapping from the public DHT nodes or provide the list of your own. Please see the full usage example in the project's readme. Picture with code is a bit misleading, I need to update it. |
Thanks for suggestion, tried with enabling bootstrapping from public DHT nodes - but no success, problem persists.
Tried same for the torrent file case, also no success, although, for torrent file, it shows following in the log, and after that just hangs...:
I have buit library from source in meantime. Here are my dependencies:
PS. forgot to mention that client Consumer instance is triggered every 1000ms as configured. |
In case with using In case with using a magnet link, logs show that the metadata has been fetched. This means that:
|
Just tried downloading with CLI:
|
Updated my initial comment |
Oh, this is actually a bug, client should provide the actual listening port to the UDP tracker.. I just pushed to the fix to master. This might have affected peer discovery in case with |
FYI, finally managed to run it successfully via magnet link (torrent file case still to be checked) :)
and this works like a charm. :) Summary:
Thank you for your support! |
#34 (plus internal refactoring of client builders)
I tracked down the cause, turned out that the standalone client was not initializing the runtime properly due to a programming error. I've pushed the fix along with some internal refactoring. Public API haven't changed. It's good that you've reported the bug, it was really subtle, and I can only wonder how many folks had run into the same problem before :)
Yeah, it's actually a known issue. GUI framework that I'm using does not support Windows, so the CLI should be run in headless mode there ( Considering your latest code: you might want to enable automatic runtime shutdown if the download is one-off task (i.e. you are not starting multiple clients in the same runtime). Otherwise the runtime will keep on wasting cycles (peer lookups, DHT agent, message loop, etc.) and will terminate only on JVM shutdown. Again, thanks for reporting and for your patience, user feedback is very important to me. |
Hi @atomashpolskiy ,
I would be very thankful for little assistance. Not sure if I'm missing something.
I'm trying to setup simple example you provided, but it fails to start download either by using torrent file or magnet link.
It just starts and hangs at one point, no download has started. I can confirm that magnet url works with e.g. uTorrent application.
JCE has been installed and verified by checking max key sizes.
Environment
Using Bt release from 2017-08-11: 1.3.1, was also not working with 1.3 version.
Example code:
Log output:
Am I missing something?
The text was updated successfully, but these errors were encountered: