def get_server_port():
    if os.path.exists(LOCK_PATH):
        with open(LOCK_PATH, 'rt') as f:
            return int(f.read().strip())
    else:
        return -1
Return the current set of cookies as a string for the HTTP_COOKIE environ.
dataset/ETHPy150Open enthought/envisage/envisage/plugins/remote_editor/communication/util.py/get_server_port--crossover with--dataset/ETHPy150Open Miserlou/Zappa/zappa/middleware.py/ZappaWSGIMiddleware.cookie_environ_string