good morning!!!!

Skip to content
Snippets Groups Projects
  1. Jan 26, 2017
  2. Dec 10, 2016
  3. Sep 02, 2016
  4. Jul 25, 2016
  5. Jun 07, 2016
  6. Jun 06, 2016
  7. May 17, 2016
  8. May 09, 2016
    • Felix Lange's avatar
      core, eth, miner: improve shutdown synchronisation · 56ed6152
      Felix Lange authored
      Shutting down geth prints hundreds of annoying error messages in some
      cases. The errors appear because the Stop method of eth.ProtocolManager,
      miner.Miner and core.TxPool is asynchronous. Left over peer sessions
      generate events which are processed after Stop even though the database
      has already been closed.
      
      The fix is to make Stop synchronous using sync.WaitGroup.
      
      For eth.ProtocolManager, in order to make use of WaitGroup safe, we need
      a way to stop new peer sessions from being added while waiting on the
      WaitGroup. The eth protocol Run function now selects on a signaling
      channel and adds to the WaitGroup only if ProtocolManager is not
      shutting down.
      
      For miner.worker and core.TxPool the number of goroutines is static,
      WaitGroup can be used in the usual way without additional
      synchronisation.
      56ed6152
  9. Nov 19, 2015
  10. Oct 28, 2015
  11. Oct 21, 2015
  12. Oct 19, 2015
  13. Oct 03, 2015
  14. Jul 29, 2015
  15. Jul 23, 2015
  16. Jul 22, 2015
  17. Jul 07, 2015
  18. Jun 30, 2015
  19. Jun 18, 2015
  20. Jun 17, 2015
  21. Jun 15, 2015
  22. Jun 10, 2015
  23. Jun 09, 2015
  24. Jun 08, 2015
  25. Jun 05, 2015
  26. May 28, 2015
  27. May 26, 2015
  28. May 23, 2015
Loading