Branch: refs/heads/master
  Home:   https://github.com/conformal/btcd
  Commit: bd98836a2b7525c93e7b3b60d9732e13c28e36eb
      
https://github.com/conformal/btcd/commit/bd98836a2b7525c93e7b3b60d9732e13c28e36eb
  Author: Josh Rickmar <[email protected]>
  Date:   2014-01-14 (Tue, 14 Jan 2014)

  Changed paths:
    M rpcserver.go
    M rpcwebsocket.go

  Log Message:
  -----------
  Fix several bugs in the RPC server shutdown.

The RPC server was performing some of the shutdown logic in the wrong
order, that is, logging the the server has shut down, waiting for all
server goroutines to finish, and then closing a channel to notify
server goroutines to stop.  These three items have been reversed to
fix a hang where goroutines currently being waited on had not shut
down because they did not receive the notification.

While here, the server waitgroup was incremented for a goroutine that
was running without it, another select statement was added to stop a
duplicate close (which never occured last commit when I added the
select statements), and the "stopping rescan" logging was moved to
debug to make the ^C shutdown logging nicer.


Reply via email to