alphacomm / alpharpc

AlphaRPC is an RPC daemon based on ZeroMQ that can be used to distribute workload over one or multiple servers.
alpharpc.net
BSD 3-Clause "New" or "Revised" License
2 stars 5 forks source link

Improved signal handling for handlers #7

Open jacobkiers opened 10 years ago

jacobkiers commented 10 years ago

The handlers within the manager do not have signal handling, a graceful kill can leave AlphaRPC to be in an incomplete state.

jacobkiers commented 10 years ago

Original comment from @reenl:

What we need:

  • Register signal handlers
  • Catch (zmq)poll exceptions
  • Add stop, isRunning logic to handlers.

The catch is the polling is done by the alpharpc--handler scripts. If we add "run state" logic to the Handler classes they will have even more responsibilities, which is undesirable.