Skip to content
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.

crust_peer fails to stop #327

Closed
vinipsmaker opened this issue Sep 17, 2015 · 3 comments
Closed

crust_peer fails to stop #327

vinipsmaker opened this issue Sep 17, 2015 · 3 comments

Comments

@vinipsmaker
Copy link
Contributor

Not the first time it happens ( #277 #141 ).

@vinipsmaker
Copy link
Contributor Author

It's working again. Not sure which commit fixed it, but must have been work from @inetic.

@vinipsmaker
Copy link
Contributor Author

It's failing again.

How to reproduce

  1. Open a single crust_peer instance.

  2. Do not connect to any other node. You may see:

       Running `target/debug/examples/crust_peer`
       Listening on ports Tcp(V4(0.0.0.0:5483))
       Enter command (stop | connect <endpoint> | send <endpoint> <message>)>
    

    You might also see:

    Didn't bootstrap to an existing network - this may be the first node of a new network.
    
  3. Enter stop.

  4. crust_peer doesn't stop.

A hint to solve this issue. The hanged/hanging crust_peer instance will gracefully stop if you, now, start another crust_peer instance that will automatically connect (through beacon) to the previous instance. This second instance won't have any trouble to execute the stop command.

@inetic
Copy link
Contributor

inetic commented Oct 30, 2015

Fixed here 20965f1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants