At 03:42 PM 6/26/01 -0700, Robin Dunn wrote:
>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?

Go ahead and check it in if it works.  I can't think of any reason for the +2.

AsyncThreadedHTTPServer is really kind of a hack.  <hint>Someone really 
needs to write the "multiple protocols" thing so that ThreadedAppServer 
could be configured to listen to HTTP directly.  I don't have time -- any 
volunteers?</hint>


--

- Geoff Talvola
   [EMAIL PROTECTED]

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

Reply via email to