[XML-SIG] 20 second socket.addrinfo() delay in SimpleXMLRPCServer
Thu, 2 Jan 2003 22:21:03 -0500
I'm experiencing some strange behavior with the SimpleXMLRPCServer. I've=
traced it as far as I can go, and would appreciate suggestions on further=
The first strange behavior is that a simple echo function takes 20 second=
respond. I've traced this delay to the httplib.HTTPConnection class, whe=
the call to socket.getaddrinfo() in the connect() routine is responsible =
this entire delay. Based on my extensive Windows experience, I did manag=
make the error go away by rebooting my computer. ;) But it came back. :=
Once back, it sticks around.
How can I debug what's happening in the _socket.getaddrinfo() method?
Is this a known problem with Python 2.2.1? GCC 3.2? RedHat 8.0? Linux=20
Kernel 2.4.18-14? Dell Inspirons?
The other strange behavor occurs in the python interpreter. On occasion,=
I type in a command like server =3D xmlrpclib.Server("http://localhost:80=
or server.echo('test'), the memory usage for the interpreter spikes (up t=
75%, per "top") stays there for around three minutes, at which point the=20
interpreter decides it's had enough and appends the string "Killed" and e=
back to the command prompt. =20
In the pre hari-kari period, I've seen the load average go as high as 7.8=
Once in this state, I was able to duplicate this behavior four times in a=
row. When I restarted the xml rpc server, everything went back to workin=
I'm running RedHat 8.0 on a Dell Inspiron 4100, with 256M RAM.
Python 2.2.1 (#1, Aug 30 2002, 12:15:30)
[GCC 3.2 20020822 (Red Hat Linux Rawhide 3.2-4)] on linux2