Commit 794ddc9d authored by Jim Fulton's avatar Jim Fulton

Bugs Fixed

----------

- ZEO client threads were unnamed, making it hard to debug thread
  management.
parent fb02f228
...@@ -2,6 +2,16 @@ ...@@ -2,6 +2,16 @@
Change History Change History
================ ================
3.9.0b2 (2009-07-02)
====================
Bugs Fixed
----------
- ZEO client threads were unnamed, making it hard to debug thread
management.
3.9.0b2 (2009-06-11) 3.9.0b2 (2009-06-11)
==================== ====================
......
...@@ -1174,6 +1174,12 @@ def open_convenience(): ...@@ -1174,6 +1174,12 @@ def open_convenience():
>>> db.close() >>> db.close()
""" """
def client_asyncore_thread_has_name():
"""
>>> len([t for t in threading.enumerate()
... if t.getName() == 'ZEO.zrpc.connection'])
1
"""
slow_test_classes = [ slow_test_classes = [
BlobAdaptedFileStorageTests, BlobWritableCacheTests, BlobAdaptedFileStorageTests, BlobWritableCacheTests,
......
...@@ -47,7 +47,7 @@ def client_exit(): ...@@ -47,7 +47,7 @@ def client_exit():
global client_running global client_running
client_running = False client_running = False
client_trigger.pull_trigger() client_trigger.pull_trigger()
client_exit_event.wait() client_exit_event.wait(99)
atexit.register(client_exit) atexit.register(client_exit)
...@@ -153,7 +153,7 @@ def client_loop(): ...@@ -153,7 +153,7 @@ def client_loop():
client_exit_event.set() client_exit_event.set()
client_thread = threading.Thread(target=client_loop) client_thread = threading.Thread(target=client_loop, name=__name__)
client_thread.setDaemon(True) client_thread.setDaemon(True)
client_thread.start() client_thread.start()
# #
......
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