[XML-SIG] 20 second socket.addrinfo() delay in SimpleXMLRPCServer
Mark Bucciarelli
mark@easymailings.com
Fri, 3 Jan 2003 10:16:27 -0500
On Friday 03 January 2003 10:01 am, Martin v. L=F6wis wrote:
> Have you configured IPv6 interfaces for your system?
It's the standard RedHat 8.0 setup. I have no experience with IPv6.
> I would use glibcbug to report those nscd trace messages. Perhaps this
> is just a bug in the trace code, which would be harmless.
I'll wait a day or so to see if anyone else chimes in here, then I'll sub=
mit a=20
bug report. It's two very simple python programs, so they should be able=
to=20
duplicate it easily. My system has glibc-2.2.93-5.
Turn on the nscd log and set debugging to 5. Start the server, and then =
enter=20
the client code in the interpreter and you should see the same entries in=
the=20
log file.
Here's the server:
import SimpleXMLRPCServer
def echo(s):
return s
server =3D SimpleXMLRPCServer.SimpleXMLRPCServer(("localhost", 8000))
server.register_function(echo)
server.serve_forever()
and here's the client code:
Python 2.2.1 (#1, Aug 30 2002, 12:15:30)
[GCC 3.2 20020822 (Red Hat Linux Rawhide 3.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import xmlrpclib
>>> server =3D xmlrpclib.Server("http://localhost:8000")
>>> server.echo("test")
> Regards,
> Martin
Thanks again,
Mark