When I found that I couldn't do XML-RPC through AsyncThreadedHTTPServer I
went looking for the problem and think I have found it.  Can anybody tell me
if the +2 is required in the code below (from
HTTPRequestHandler.handle_read)?

        elif string.lower(self.reqtype) == "post":
            for i in self.request_data:
                if string.lower(string.split(i,":")[0]) =="content-length":
                    self.datalength = int(string.split(i)[1]) + 2

The problem is that xmlrpclib sends content-length bytes and no more (which
should be correct) and HTTPRequestHandler will continue waiting for those
final two bytes before allowing the request to be processed.  Since they
never arrive then the request is effectivly hung.

Without the +2 then xmlrpclib works fine as well as all other POSTs in the
example pages, etc.  Should I check it in?

--
Robin Dunn
Software Craftsman
[EMAIL PROTECTED]       Java give you jitters?
http://wxPython.org      Relax with wxPython!







_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to