[offlineimap] Crash on OSX Yosemite python 2.7.6 (latency) (#205)

Monson Shao notifications at github.com
Thu Aug 13 11:11:23 BST 2015


A dirty hack with the below patch somewhat works (error but no hung), and I also raise `rxzero` upper limit to 100 instead of 5.

```
--- /Users/monson/project/offlineimap/offlineimap/imapserver.py	2015-08-13 18:03:03.000000000 +0800
+++ /usr/local/Cellar/offline-imap/6.5.7/libexec/offlineimap/imapserver.py	2015-08-13 16:34:03.000000000 +0800
@@ -159,7 +159,10 @@

         if connection is None: return #noop on bad connection
         self.connectionlock.acquire()
-        self.assignedconnections.remove(connection)
+        try:
+            self.assignedconnections.remove(connection)
+        except ValueError:
+            pass
         # Don't reuse broken connections
         if connection.Terminate or drop_conn:
             connection.logout()
```

---
Reply to this email directly or view it on GitHub:
https://github.com/OfflineIMAP/offlineimap/issues/205#issuecomment-130602316
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20150813/9fcbc63f/attachment-0002.html>


More information about the OfflineIMAP-project mailing list