From 44c8098906375020b6d6b894601c356bd0fbd586 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 20 Sep 2013 17:14:16 -0400 Subject: [PATCH] Add commented code to allow easily getting at the debug socket, needs eventlet fix to work --- confluent/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/confluent/main.py b/confluent/main.py index 0c26cf63..cd634a25 100644 --- a/confluent/main.py +++ b/confluent/main.py @@ -15,6 +15,7 @@ import confluent.pluginapi as pluginapi import confluent.httpapi as httpapi import confluent.sockapi as sockapi import eventlet +import eventlet.backdoor as backdoor from eventlet.green import socket from eventlet import wsgi import multiprocessing @@ -23,6 +24,9 @@ import os def run(): pluginapi.load_plugins() + #TODO: eventlet has a bug about unix domain sockets, this code works with bugs fixed + #dbgsock = eventlet.listen("/var/run/confluent/dbg.sock", family=socket.AF_UNIX) + #eventlet.spawn_n(backdoor.backdoor_server, dbgsock) webservice = httpapi.HttpApi() webservice.start() sockservice = sockapi.SockApi()