Re: xmlrpclib hangs execution

2007-07-10 Thread Arno Stienen
Thanks! I'll try that one too to find the easiest solution. For portability, it is easier to use a new transport class and not have to patch files of the Python distribution. Using a similar strategy, I used this class just before I read about your patch, which works fine too: http://mail.pytho

Re: xmlrpclib hangs execution

2007-07-10 Thread itkovian
Arno, > Your patches solves the problem too. Thanks! > > One thing: if I use the unpatched xmlrpclib.py, the printed output of > xml calls look like: > > {'state': 0, 'str': 'Info_RT'} > > But if I use your patch, they look like: > > state0strInfo_RT > > I prefer the former, as it

Re: xmlrpclib hangs execution

2007-07-10 Thread Arno Stienen
Hi Andy, Your patches solves the problem too. Thanks! One thing: if I use the unpatched xmlrpclib.py, the printed output of xml calls look like: {'state': 0, 'str': 'Info_RT'} But if I use your patch, they look like: state0strInfo_RT I prefer the former, as it is easier to ex

Re: xmlrpclib hangs execution

2007-07-08 Thread Arno Stienen
Arno Stienen wrote: > I'll now try this to fool the client into thinking the server 'should' > keep the connection open: > > http://www.velocityreviews.com/forums/t329401-re-xmlrpc-httplib-and-ssl-http-11-xmlrpc-client.html > Just to conclude. Above actually worked and solved my problems with

Re: xmlrpclib hangs execution

2007-06-18 Thread itkovian
I think a better fix than the one I posted below is using the HTTPConnection library, as opposed to the HTTP library from httplib. A patch can be found below: --- /sw/lib/python2.5/xmlrpclib.py 2006-11-29 02:46:38.0 +0100 +++ xmlrpclib.py2007-06-15 16:03:17.0 +0200 @@

Re: xmlrpclib hangs execution

2007-06-14 Thread itkovian
On Jun 14, 3:10 pm, [EMAIL PROTECTED] wrote: > Hi, > > > 2. The Python implementation ofxmlrpcis not very robust. It just waits for > > the connection to close. A well-written client (like your Java client) > > would detect the presence of a Content-Length header and use that. > > I'm facing a simi

Re: xmlrpclib hangs execution

2007-06-14 Thread itkovian
Hi, > 2. The Python implementation ofxmlrpcis not very robust. It just waits for > the connection to close. A well-written client (like your Java client) > would detect the presence of a Content-Length header and use that. I'm facing a similar ordeal here. I think the right thing to do would be t

Re: xmlrpclib hangs execution

2007-05-30 Thread Arno Stienen
Tijs wrote: >> Arno Stienen wrote: >>> Perhaps I should be a bit more specific. When using this code to connect >>> to a remote XML-RPC server (C++, xmlrpc++0.7 library): >>> >>>import xmlrpclib >>>server = xmlrpclib.Server("http://10.10.101.62:29500";) >>>print

Re: xmlrpclib hangs execution

2007-05-30 Thread Arno Stienen
Tijs, Thank you very much for specific comments. They are most useful, and I'll try both strategies. If the latter works out, I'll post the results back on the list. Bye, Arno. Tijs wrote: > Arno Stienen wrote: > >> Arno Stienen wrote: >>> Perhaps I should be a bit more specific. When using

Re: xmlrpclib hangs execution

2007-05-30 Thread Tijs
Arno Stienen wrote: > Arno Stienen wrote: >> Perhaps I should be a bit more specific. When using this code to connect >> to a remote XML-RPC server (C++, xmlrpc++0.7 library): >> >>import xmlrpclib >>server = xmlrpclib.Server("http://10.10.101.62:29500";) >>pri

Re: xmlrpclib hangs execution

2007-05-30 Thread Arno Stienen
I'm sorry to keep bumping my request, but I've been working on this problem for several months now and am stuck. Perhaps you do not have a direct answer, but know someone or someforum where I could ask these XML-RPC or TCP/IP package questions. Thanks, Arno. Arno Stienen wrote: > Perhaps I sho

xmlrpclib hangs execution

2007-05-28 Thread Arno Stienen
Perhaps I should be a bit more specific. When using this code to connect to a remote XML-RPC server (C++, xmlrpc++0.7 library): import xmlrpclib server = xmlrpclib.Server("http://10.10.101.62:29500";) print server.Connection_Request("roberto") the Python command