Commit 3c525909 authored by Jim Fulton's avatar Jim Fulton

Save created server as global when running test/dev servers

Useful for playing with ssl configurations and generally for being
able to inspect server state in development and testing.

This only makes sense when running the server in a thread, of course.
parent b0366fa2
...@@ -108,6 +108,7 @@ def runner(config, qin, qout, timeout=None, ...@@ -108,6 +108,7 @@ def runner(config, qin, qout, timeout=None,
options = ZEO.runzeo.ZEOOptions() options = ZEO.runzeo.ZEOOptions()
options.realize(['-C', config]) options.realize(['-C', config])
server = ZEO.runzeo.ZEOServer(options) server = ZEO.runzeo.ZEOServer(options)
globals()[(name if name else 'last') + '_server'] = server
server.open_storages() server.open_storages()
server.clear_socket() server.clear_socket()
server.create_server() server.create_server()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment