Sha256: 0da878992f09ed38ae67ca58683048d034008106241cef9db0e79b6637609b02

Contents?: true

Size: 673 Bytes

Versions: 1

Compression:

Stored size: 673 Bytes

Contents

# Acceptor Registration

When an acceptor is booted, it registers itself with the master process through UNIX Sockets. Specifically, it talks to the `AcceptorRegistrationMonitor`.

Here's an overview of the registration process:

1. `AcceptorRegistrationMonitor` creates a socketpair for Acceptor registration (`S_REG`)
2. When an `Acceptor` is started, it:
  1. Creates a new socketpair for communication with the master process (`S_ACC`)
  2. Sends one side of `S_ACC` over `S_REG` to the master.
  3. Sends its pid and then a newline character over `S_REG`.
3. `AcceptorRegistrationMonitor` receives first the IO and then the pid, and stores them for later reference.


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zeus-0.4.6 docs/acceptor_registration.md