good morning!!!!

Skip to content
Snippets Groups Projects
  1. Oct 15, 2018
  2. Oct 12, 2018
  3. Oct 11, 2018
    • Felix Lange's avatar
      p2p/simulations: fix a deadlock and clean up adapters (#17891) · dcae0d34
      Felix Lange authored
      This fixes a rare deadlock with the inproc adapter:
      
      - A node is stopped, which acquires Network.lock.
      - The protocol code being simulated (swarm/network in my case)
        waits for its goroutines to shut down.
      - One of those goroutines calls into the simulation to add a peer,
        which waits for Network.lock.
      
      The fix for the deadlock is really simple, just release the lock
      before stopping the simulation node.
      
      Other changes in this PR clean up the exec adapter so it reports
      node startup errors better and remove the docker adapter because
      it just adds overhead.
      
      In the exec adapter, node information is now posted to a one-shot
      server. This avoids log parsing and allows reporting startup
      errors to the simulation host.
      
      A small change in package node was needed because simulation
      nodes use port zero. Node.{HTTP,WS}Endpoint now return the live
      endpoints after startup by checking the TCP listener.
      Unverified
      dcae0d34
  4. Oct 10, 2018
  5. Oct 09, 2018
  6. Oct 08, 2018
  7. Oct 06, 2018
  8. Oct 05, 2018
  9. Oct 04, 2018
Loading