Branch: refs/heads/master
Home: https://github.com/conformal/btcd
Commit: 4431fd9c0de30df57ab516ce02fcb3291951b1cc
https://github.com/conformal/btcd/commit/4431fd9c0de30df57ab516ce02fcb3291951b1cc
Author: Francis Lam <[email protected]>
Date: 2014-02-11 (Tue, 11 Feb 2014)
Changed paths:
M rpcwebsocket.go
Log Message:
-----------
Added checking for closed connections in websocket handler helpers
Since the websocket handlers run in their own separate goroutines, it's
possible that they execute after the websocket connection has been
closed and cleaned up. This commit add the necessary checks to ensure
stale data isn't added to notification lists and that requests to closed
connections are ignored.
This closes #92.