Branch: refs/heads/master
  Home:   https://github.com/conformal/btcd
  Commit: 29dd4114576e82c4bd57d027836e6109da1e6e48
      
https://github.com/conformal/btcd/commit/29dd4114576e82c4bd57d027836e6109da1e6e48
  Author: Josh Rickmar <[email protected]>
  Date:   2014-03-21 (Fri, 21 Mar 2014)

  Changed paths:
    M rpcwebsocket.go

  Log Message:
  -----------
  Prevent blocking on RPC server messages after shutdown.

This change adds select statements to each channel write that may
occur from a non-RPCS goroutine to unblock once the server has begun
shutting down.  This prevents issues in clean shutdown where non-RPCS
goroutines may block indefinitely on message sends to the RPC server.


Reply via email to