-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Notice that logging happes at two points in time when the system is in a consistent state; a) when a message is received^1 and b) when a message is sent. 1 A message is conceptually received, not when the receiver thread accepts the message from the ServerSocket, but when the message is taken out of the inbox. While it might be tempting to log in the receiver thread, it would break the happen-before relationship of some log statements. For example, it could appear as if a node first received a payload message that activated the node, and it then passes the token (which a node is only allowed to do when it is inactive).
- Loading branch information
Showing
1 changed file
with
60 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters