Closed asadsm closed 5 years ago
It seems to be stuck in the while loop in DigestBase
while(var3 >= this.blockSize) {
this.implCompress(var1, var2);
var3 -= this.blockSize;
var2 += this.blockSize;
}
Are you sure that code blocks on client.downloadTorrentAsync
invocation? You don't stop simple client instance. Executor services are creating there and they will hold java process.
Yes as I'm using a for loop to start download for all torrents passed in. It only outputs the first sout statement
DigestBase
is a part of JRE. I think it works correctly:)
Then can you enable debug logging and provide logs? Just add this code at start main method for enable logging
BasicConfigurator.configure(new ConsoleAppender(new PatternLayout("[%d{MMdd HH:mm:ss,SSS} %t] %6p - %20.20c - %m %n")));
org.apache.log4j.Logger.getRootLogger().setLevel(Level.DEBUG);
Well, I came in this morning and ran the code and it did not get stuck....very weird given I just pressed play on the IDE. I have no idea what happened...sorry for the trouble
Using the following code, based off of the code in the cli package. Code blocks on
client.downloadTorrentAsync
. Similar issue forclient.downloadTorrentAsync
despite the fact that the file is downloaded successfully. The torrents were created using code similar to what's given in cli package as well. Any ideas what I'm doing wrong here?