joshmarshall / jsonrpclib

A Python JSON-RPC over HTTP that mirrors xmlrpclib syntax.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About the efficiency for huge data transformation

iSeaSoul opened this issue · comments

commented

Sorry for my poor English description.

Anyhow, the problem is:

I used this lib to call a published JSONRPC service, at the beginning, the speed was fast enough. While as the size of transformed data increased, the speed went more and more slowly. And at last, it took inconceivably long time to get the response, like a zombie process.

If I pressed Ctrl+C to terminate it, the result always was like that:

File "/home/work/lib/python2.7/site-packages/jsonrpclib/jsonrpc.py", line 274, in call
return self.__send(self.__name, args)
File "/home/work/lib/python2.7/site-packages/jsonrpclib/jsonrpc.py", line 224, in _request
response = self._run_request(request)
File "/home/work/lib/python2.7/site-packages/jsonrpclib/jsonrpc.py", line 242, in _run_request
verbose=self.__verbose
File "/home/work/lib/python2.7/xmlrpclib.py", line 1264, in request
return self.single_request(host, handler, request_body, verbose)
File "/home/work/lib/python2.7/xmlrpclib.py", line 1294, in single_request
response = h.getresponse(buffering=True)
File "/home/work/lib/python2.7/httplib.py", line 1030, in getresponse
response.begin()
File "/home/work/lib/python2.7/httplib.py", line 407, in begin
version, status, reason = self._read_status()
File "/home/work/lib/python2.7/httplib.py", line 365, in _read_status
line = self.fp.readline()
File "/home/work/lib/python2.7/socket.py", line 447, in readline
data = self._sock.recv(self._rbufsize)
KeyboardInterrupt

Is there any reasonable explanation, for example, buffering size, or sth...?

Thanks very much.

commented

Sorry. My mistake > < Issue closed.