2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 19:10:10 +00:00

Add commented code to allow easily getting at the debug socket, needs eventlet fix to work

This commit is contained in:
Jarrod Johnson 2013-09-20 17:14:16 -04:00
parent 982b438279
commit 44c8098906

View File

@ -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()