[sr-dev] xmlrcp request takes very long time

Juha Heinanen jh at tutpro.com
Mon Jul 6 22:41:40 CEST 2009


i may be wrong, but it is hard for me to believe that python xmlrpclib
would be badly broken, because it is very widely used.

if i look more closely at body of sr response:

##
T 2009/07/06 18:18:25.498713 192.98.101.10:6060 -> 192.98.101.10:37656 [AP]
HTTP/1.0 200 OK.
Via: SIP/2.0/TCP 192.98.101.10:37656.
Server: OpenXg SIP Router (2.99.0-dev01-serk (i386/linux)).
Content-Length: 108.
.
<?xml version="1.0"?>
<methodResponse>
<params>
<param>
<value></value>
</param>
</params>
</methodResponse>
#

i notice that each body line is terminated only by one char (cr or lf)
and the last line is not terminated by any char.  content-length 108
seems to verify this.

i don't know if it is ok that lines end with only one char and that the
last line does not end with anything.

for comparison, mi xmlrpc module terminates each body line (including
the last) with both cr and lf:

#
T 2009/07/06 18:12:34.032315 192.98.101.10:6060 -> 192.98.101.10:41014 [AFP]
Content-length: 147.
Connection: close.
Date: Mon, 06 Jul 2009 16:12:34 GMT.
Server: XMLRPC_ABYSS/1.06.
.
<?xml version="1.0" encoding="UTF-8"?>.
<methodResponse>.
<params>.
<param><value><string></string></value></param>.
</params>.
</methodResponse>.

####

-- juha



More information about the sr-dev mailing list