// Perform expensive serialization all at once. Do this before signal handler is setup. public static void Init() { Shutdown.ShutdownEvent += OnShutdown; ConnectionHandler.Init(); initialized = true; }
static internal void MarkHandlerAsKilled (ConnectionHandler handler) { lock (live_handlers) { live_handlers.Remove (handler); if (handler is HttpConnectionHandler) item_handlers.Remove (((HttpConnectionHandler) handler).Guid); } }