[Checkins] SVN: zc.ngi/trunk/ Bugs fixed:

Jim Fulton jim at zope.com
Thu Jul 2 16:05:00 EDT 2009


Log message for revision 101406:
  Bugs fixed:
  
  - The zc.ngi.async thread wasn't named. All threads should be named.
  

Changed:
  U   zc.ngi/trunk/README.txt
  U   zc.ngi/trunk/src/zc/ngi/async.py
  U   zc.ngi/trunk/src/zc/ngi/tests.py

-=-
Modified: zc.ngi/trunk/README.txt
===================================================================
--- zc.ngi/trunk/README.txt	2009-07-02 19:29:12 UTC (rev 101405)
+++ zc.ngi/trunk/README.txt	2009-07-02 20:05:00 UTC (rev 101406)
@@ -17,6 +17,14 @@
 *******
 
 ==================
+1.1.2 (2009-07-02)
+==================
+
+Bugs fixed:
+
+- The zc.ngi.async thread wasn't named. All threads should be named.
+
+==================
 1.1.1 (2009-06-29)
 ==================
 

Modified: zc.ngi/trunk/src/zc/ngi/async.py
===================================================================
--- zc.ngi/trunk/src/zc/ngi/async.py	2009-07-02 19:29:12 UTC (rev 101405)
+++ zc.ngi/trunk/src/zc/ngi/async.py	2009-07-02 20:05:00 UTC (rev 101406)
@@ -593,6 +593,6 @@
             logger.exception('loop error')
             raise
 
-_thread = threading.Thread(target=loop)
+_thread = threading.Thread(target=loop, name=__name__)
 _thread.setDaemon(True)
 _thread.start()

Modified: zc.ngi/trunk/src/zc/ngi/tests.py
===================================================================
--- zc.ngi/trunk/src/zc/ngi/tests.py	2009-07-02 19:29:12 UTC (rev 101405)
+++ zc.ngi/trunk/src/zc/ngi/tests.py	2009-07-02 20:05:00 UTC (rev 101406)
@@ -51,6 +51,12 @@
 
     """
 
+def async_thread_has_name():
+    """
+    >>> len([t for t in threading.enumerate() if t.name == 'zc.ngi.async'])
+    1
+    """
+
 def blocking_connector_handles_failed_connect():
     """
     >>> import zc.ngi.blocking



More information about the Checkins mailing list