Closed ParadoxSpiral closed 6 years ago
Thanks for the report. I was not able to reproduce the issue locally on OS X. Would you mind providing a bit more info on the environment?
Also, is there a way to repro w/o the terminal UI? Maybe that is what is tripping me up.
Here's a video of the behaviour, first how it should be, then what happens after an update.
Note that eventually (after the timeout of 10 seconds) axon does get notified that it was connected, but does not receive any RPC messages (the list of torrents/trackers is empty). and only occasionally receives messages (via tokio streams implemented by rust-websocket) at the very start.
Here is the problem: https://github.com/ParadoxSpiral/axon/blob/master/src/rpc.rs#L61-L62
It is not safe to use Core
instances across threads. It just happened to work to date by luck.
Oh, well then, sorry for the noise I guess :<
Hi, I haven't investigated this much yet, but running a cargo update that does the following breaks my code (I've already determined that the serde/synapse-rpc updates are not at fault):
To repro:
$ git clone https://github.com/Luminarys/synapse.git && cd synapse && cargo run
$ git clone https://github.com/ParadoxSpiral/axon.git && cd axon && cargo update && cargo run
The relevant code is this Anyone got an idea of what might have happened here?