Skip to content
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

Help Request: Running a test torrent #2

Open
seanwestfall opened this issue Dec 30, 2017 · 1 comment
Open

Help Request: Running a test torrent #2

seanwestfall opened this issue Dec 30, 2017 · 1 comment

Comments

@seanwestfall
Copy link

Hey Jakub,
Read your article on chaps.io and though it was pretty awesome. I wanted to try compiling your code and seeing how it downloads a torrent. I couldn't get master to compile (as of today) but I pulled the code from before your last commit (980bbaf) and got it to compile with GHC 8.2.1. When I run it as is with a test torrent file, as below, it pauses for a pretty long time after printing "peer connected":

/x86_64-osx/nightly-2017-11-21/8.2.1/bin/torrent ./test.torrent
["./test.torrent"]
Setting phasers to stun... (port 8036) (ctrl-c to quit)
peer connected
peer connected
peer connected
^Cquiting cleanup
torrent: thread killed

It never does anything past the "peer connected" message.

am I using the wrong format for the CL arguments (should I be using full paths, cause I tried that and that didn't change anything). I could probably figure it out on my own, but it's just faster if I ask for help.

@farnoy
Copy link
Owner

farnoy commented Jan 2, 2018

Hey Sean,

A few commits behind should be fine, I am currently vectorizing I/O so I might introduce bugs on latest master.

You're using the arguments correctly, the problem may be with a specific torrent. Right now, it doesn't support DHT or magnet links and does a poor job of talking to the tracker. This makes it a bad choice for large scale public trackers and also private trackers (because of unknown user agent). I test it mostly on small, public torrents like the ones here.

Can you try one of these and see if it works?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants