Comments (4)
If I run multiple instances of
cargo run --example crust_peer
then the stop command works fine on all but the last remaining instance.
If I only run a single instance then it also fails and I require a ctrl-c to regain the prompt.
Latest git versions of all libs and last nights rust on Ubuntu 15.04
from crust.
This might be related to shut-down of the beacon server. I have not yet looked into the code.
Its only the first node which acquires the beacon port (on a machine). I will update after investigating it.
from crust.
The code blocks on beacon.rs:L172/std::net::addr::SocketAddr::recv_from
.
I'm studying the commit that introduced such feature to fix the issue.
from crust.
std::net::addr::SocketAddr::recv_from
is used to wait for the other thread to finish cleanly. The problem is that the crust_peer
example calls ConnectionManager::stop
twice and BroadcastAcceptor::stop
doesn't handle "double stop correctly". I'll write a patch soon.
from crust.
Related Issues (20)
- Generate Crust ID ourselves
- Dynamic connections manager
- Remove message priorities HOT 1
- Report about dropped messages HOT 2
- Solve head of line blocking HOT 1
- Simplify bootstrap cache
- External reachability test should not make a connection attempt fail
- Unable to connect to local peer on localhost in example HOT 3
- Connection attempt fails HOT 6
- Message Splitting HOT 1
- Remove CrustUser
- Remove PrivConnectionInfo
- Rename prepare_connection_info
- Remove (dis)connect API and make the Send API take peer-information
- Connection Pool
- Is there a method to obtain a peer port. (Q&A)
- Exhaustively Document the nat traversal techniques used.
- Example Code HOT 1
- Fix dyn issues on 1.37
- Is moving to futures and async/await being considered?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crust.