Adam Watkins <[email protected]> writes:
> Apologies Nikolaus. I've attached a full traceback.
>
> The "AttributeError: 'NoneType' object has no attribute 'close'" error
> doesn't seem to reliably occur.

This is really odd. Could you possibly apply the attached patch to your
dugong installation, try to reproduce the 'NoneType' error again and
post the complete output?

Thanks!
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«

-- 
You received this message because you are subscribed to the Google Groups 
"s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/dugong/__init__.py b/dugong/__init__.py
--- a/dugong/__init__.py
+++ b/dugong/__init__.py
@@ -11,6 +11,7 @@
 (http://www.apache.org/licenses/LICENSE-2.0)
 '''
 
+import threading
 import socket
 import logging
 import errno
@@ -428,6 +429,8 @@
         """
 
         log.debug('start')
+        print('start connect(%d) by %s'
+              % (id(self), threading.currentThread().name))
 
         if self.proxy:
             log.debug('connecting to %s', self.proxy)
@@ -456,6 +459,8 @@
         self._pending_requests = deque()
 
         log.debug('done')
+        print('finished connect(%d) by %s'
+              % (id(self), threading.currentThread().name))
 
     def _co_tunnel(self):
         '''Set up CONNECT tunnel to destination server'''
@@ -1319,6 +1324,8 @@
     def disconnect(self):
         '''Close HTTP connection'''
 
+        print('start disconnect(%d) by %s'
+              % (id(self), threading.currentThread().name))
         log.debug('start')
         if self._sock:
             try:
@@ -1333,6 +1340,9 @@
         else:
             log.debug('already closed')
 
+        print('finished disconnect(%d) by %s'
+              % (id(self), threading.currentThread().name))
+
     def __enter__(self):
         return self
 

Reply via email to