XML-RPC

J

Jonathan Daugherty

I'm using python 2.3.3 (#2, Jan 4 2004, 12:24:16), [GCC 3.3.3 20031229
(prerelease) (Debian)], debian unstable. I have written a client and
server program which communicate using the built-in xmlrpclib and
SimpleXMLRPCServer. The server starts up fine, and the client can
connect to it and issue commands (method calls) just fine. However,
after some unknown period of time, the client hangs at the time of the
method call, during which time netstat reports:

recv send
tcp 307 0 127.0.0.1:9000 127.0.0.1:35496 ESTABLISHED

Once I break the client and run netstat again, I get:

tcp 307 0 127.0.0.1:9000 127.0.0.1:35496 CLOSE_WAIT

And lines such as these hang around in netstat's output for quite some
time (several are there now, left over from attempts to run the client
about 8 hours ago). I haven't been able to identify exactly when this
starts to occur or why. Sometimes it happens soon after starting the
server; sometimes it takes days.

The server is multi-threaded. The XML-RPC thread is the main thread.
Proper locking mechanisms are used and I have been able to determine
that deadlock is not an issue.

Does anyone have any ideas?

Thanks!

--

Jonathan Daugherty
http://www.cprogrammer.org

"It's a book about a Spanish guy called Manual, you should read it."
-- Dilbert
 
C

Christian Jensen

Personally, I have gone down this path and have found that using mod_python
is a MUCH better way to go.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,276
Latest member
Sawatmakal

Latest Threads

Top