Anonymous committed 591f18b

Bugfix: xmlrpc version 1.0.1. The xmlrpc caused a socket.write for every character in the cpg.response.body. Fixed: it will now write the entire contents at once.

Comments (0)

Files changed (1)


 ## Remco Boerma
 ## History:
+## 1.0.1   : 2005-01-26 Speedup due to generator usage in CP2.
+##           The result is now converted to a list with length 1. So the complete
+##           xmlrpc result is written at once, and not per character. Thanks to
+##           Gian Paolo Ciceri for reporting the slowdown.
 ## 1.0.0   : 2004-12-29 Released with CP2
 ## 0.0.9   : 2004-12-23 made it CP2 #59 compatible (returns an iterable)
 ##           Please note: as the xmlrpc doesn't know what you would want to return
         if not cpg.request.isRPC: 
             return # it's not an RPC call, so just let it go with the normal flow
-            # use this for debugging and more info:
-            # print 'beforeResponse: cpg.response.body ==',`cpg.response.body` 
-            cpg.response.body = xmlrpclib.dumps((cpg.response.body[0],), methodresponse=1,allow_none=1)
+            cpg.response.body = [xmlrpclib.dumps((cpg.response.body[0],), methodresponse=1,allow_none=1)]
         except xmlrpclib.Fault,fault:
             cpg.response.body = xmlrpclib.dumps(fault,allow_none=1)
         except Exception,e:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.