# Path: fluxghost/http_server_base.py
# class HttpServerBase(object):
#     def __init__(self, assets_path, address, allow_foreign=False,
#                  enable_discover=False, backlog=10, debug=False):
#     def launch_discover(self):
#     def serve_forever(self):
#     def on_discover_device(self, discover_instance, uuid, device, **kw):
#     def set_push_studio_ws(self, ws):


from multiprocessing import Process
from fluxghost.http_server_base import HttpServerBase, logger
    from fluxghost.http_handler import HttpHandler
import sys
import Crypto.Random





def fork_entry(request, client, server):
    Crypto.Random.atfork()
    HttpHandler(request, client, server)


def check_autoreload():
    if "fluxghost.http_handler" in sys.modules:
        logger.warn("Warning!! The fluxghost.http_handler has been "
                    "loaded before fork, auto-reload moudle function is"
                    " not work anymore.")
        return
    if "fluxclient" in sys.modules:

# Path: fluxghost/http_server_base.py
# class HttpServerBase(object):
#     def __init__(self, assets_path, address, allow_foreign=False,
#                  enable_discover=False, backlog=10, debug=False):
#     def launch_discover(self):
#     def serve_forever(self):
#     def on_discover_device(self, discover_instance, uuid, device, **kw):
#     def set_push_studio_ws(self, ws):


# Path: fluxghost/http_server_debug.py
from multiprocessing import Process
from fluxghost.http_server_base import HttpServerBase, logger
    from fluxghost.http_handler import HttpHandler
import sys
import Crypto.Random






def fork_entry(request, client, server):
    Crypto.Random.atfork()
    HttpHandler(request, client, server)


def check_autoreload():
    if "fluxghost.http_handler" in sys.modules:
        logger.warn("Warning!! The fluxghost.http_handler has been "
                    "loaded before fork, auto-reload moudle function is"
                    " not work anymore.")
        return
    if "fluxclient" in sys.modules:

        logger.warn("Warning!! The fluxclient has been "