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

stateful for restarts #10

Open
gedw99 opened this issue Dec 21, 2023 · 2 comments
Open

stateful for restarts #10

gedw99 opened this issue Dec 21, 2023 · 2 comments

Comments

@gedw99
Copy link

gedw99 commented Dec 21, 2023

Looks like it looses state after a restart..

We should look into a JSON or sqlite store ?

@jech
Copy link
Owner

jech commented Dec 21, 2023

That's by design: storrent is designed not to store anything on disk, everything happens in RAM. The only exception is the DHT routing table, which is stored into the dht.dat file.

I wouldn't be opposed to adding such a feature, but it would be optional and disabled by default, since I rather like the current behaviour.

We should look into a JSON or sqlite store ?

SQL is out of the question, there's no reason to use a relational database for what is a tree structure.

Please consider using bencode, since it's already used by storrent.

@gedw99
Copy link
Author

gedw99 commented Dec 23, 2023

ok got it.
will look into github.com/zeebo/bencode

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