GithubHelp home page GithubHelp logo

Unknown type for bencode about bittornado HOT 10 CLOSED

effigies avatar effigies commented on June 1, 2024
Unknown type for bencode

from bittornado.

Comments (10)

effigies avatar effigies commented on June 1, 2024

Thanks for the report. (I updated your comment because the type was invisible.)

Looks like file mtimes are floats, which can't be bencoded. The simplest solution will be to coerce the types to int, but I'll need to decide whether it's better to do that when writing to file or when reading the mtimes in the first place. From a quick glance, BitTornado doesn't actually use the mtime, so it probably doesn't matter, but I'll want to look a little closer before breaking something.

from bittornado.

effigies avatar effigies commented on June 1, 2024

Can you verify that the issue_25 branch solves your problem?

from bittornado.

Yuuki2012 avatar Yuuki2012 commented on June 1, 2024

Ok, I'm running the tracker, I'll report back after about 30-60min, or earlier, depending if the issue pops up again or not.

from bittornado.

effigies avatar effigies commented on June 1, 2024

I was able to produce the error by hitting Control-C, forcing it to save the state file and close. And the default save interval is 300s (5min).

from bittornado.

Yuuki2012 avatar Yuuki2012 commented on June 1, 2024

Is that the same error? (I didn't really check that, thought it was normal because I'm forcing it to close, happens with a lot of programs), sometimes it happens and sometimes it doesn't.

from bittornado.

effigies avatar effigies commented on June 1, 2024

Yeah. It goes through Tracker.save_state, which is called at intervals and at shutdown.

In general, tracebacks are a bad sign. If you encounter them when exiting any BitTornado programs, feel free to start another issue.

from bittornado.

Yuuki2012 avatar Yuuki2012 commented on June 1, 2024

Well I just use the tracker, so can't really tell. Atm I have no need for the other programs ^^

from bittornado.

effigies avatar effigies commented on June 1, 2024

How'd your tests go?

from bittornado.

Yuuki2012 avatar Yuuki2012 commented on June 1, 2024

Haven't gotten any errors until now, I restarted it a few times (force closing with CTRL+C) but it saved the dstate file just fine, so I think it's fixed now?

from bittornado.

effigies avatar effigies commented on June 1, 2024

Sounds good. Merging.

from bittornado.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.