Peer validation

The socket that effects singleton instances is a public socket that anyone can connect to, and it's even publicly registered. Some minimum security may be implemented by invoking validate_peer(), which verifies that the connected peer is the same application that invoked validate_peer().


validate_peer() is typically invoked:

validate_peer() takes the following actions:

An exception gets thrown if the peer does not respond in 30 seconds or if it fails validation for any reason.


validate_peer() advertises the process's executable pathname via the portmapper.