SVN: ZODB/branches/jim-thready-zeo/src/ZEO/ Got thready blob retrieval working.

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <20090910202110.8C34A94186__46692.6216883168$1252614088$gmane$org@cvs.zope.org>
Log message for revision 103725:
  Got thready blob retrieval working.
  

Changed:
  U   ZODB/branches/jim-thready-zeo/src/ZEO/StorageServer.py
  U   ZODB/branches/jim-thready-zeo/src/ZEO/zrpc/connection.py

-=-
Modified: ZODB/branches/jim-thready-zeo/src/ZEO/StorageServer.py
===================================================================
--- ZODB/branches/jim-thready-zeo/src/ZEO/StorageServer.py	2009-09-10 20:03:43 UTC (rev 103724)
+++ ZODB/branches/jim-thready-zeo/src/ZEO/StorageServer.py	2009-09-10 20:21:10 UTC (rev 103725)
@@ -640,7 +640,8 @@
         self.blob_log.append((oid, serial, data, filename))
 
     def sendBlob(self, oid, serial):
-        self.client.storeBlob(oid, serial, self.storage.loadBlob(oid, serial))
+        return self.client.storeBlob(
+            oid, serial, self.storage.loadBlob(oid, serial))
 
     def _delete(self, oid, serial):
         err = None
@@ -1369,7 +1370,6 @@
 
     @ZEO.thready.delayed
     def storeBlob(self, oid, serial, blobfilename):
-
         self.rpc.callAsync('receiveBlobStart', oid, serial)
 
         f = open(blobfilename, 'rb')

Modified: ZODB/branches/jim-thready-zeo/src/ZEO/zrpc/connection.py
===================================================================
--- ZODB/branches/jim-thready-zeo/src/ZEO/zrpc/connection.py	2009-09-10 20:03:43 UTC (rev 103724)
+++ ZODB/branches/jim-thready-zeo/src/ZEO/zrpc/connection.py	2009-09-10 20:21:10 UTC (rev 103725)
@@ -733,6 +733,7 @@
         client.
         """
         self.message_output(self.__outputIterator(iterator))
+        self.poll()
 
     def __outputIterator(self, iterator):
         for method, args in iterator:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.