I have a script I'm working on that creates a secure RCP over HTTP server and I've been confounded by an exception being thrown deep in the socket.py module -- through trouble-shooting I have discovered that this is due to an issue between python 2.6 and 2.7. Running stock 11.04, up to date.
Traceback (most recent call last):
File "peerdisk-client.py", line 22, in <module>
print broker.call('Sample2_main')
File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.7/xmlrpclib.py", line 1575, in __request
verbose=self.__verbose
File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib/python2.7/xmlrpclib.py", line 1294, in single_request
response = h.getresponse(buffering=True)
File "/usr/lib/python2.7/httplib.py", line 1027, in getresponse
response.begin()
File "/usr/lib/python2.7/httplib.py", line 407, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.7/httplib.py", line 365, in _read_status
line = self.fp.readline()
File "/usr/lib/python2.7/socket.py", line 447, in readline
data = self._sock.recv(self._rbufsize)
socket.error: [Errno 104] Connection reset by peer
Like I said, when I run it under python 2.6 I don't have any issues.
I have a script I'm working on that creates a secure RCP over HTTP server and I've been confounded by an exception being thrown deep in the socket.py module -- through trouble-shooting I have discovered that this is due to an issue between python 2.6 and 2.7. Running stock 11.04, up to date.
Traceback (most recent call last): client. py", line 22, in <module> call('Sample2_ main') python2. 7/xmlrpclib. py", line 1224, in __call__ send(self. __name, args) python2. 7/xmlrpclib. py", line 1575, in __request self.__ verbose python2. 7/xmlrpclib. py", line 1264, in request request( host, handler, request_body, verbose) python2. 7/xmlrpclib. py", line 1294, in single_request buffering= True) python2. 7/httplib. py", line 1027, in getresponse begin() python2. 7/httplib. py", line 407, in begin python2. 7/httplib. py", line 365, in _read_status python2. 7/socket. py", line 447, in readline recv(self. _rbufsize)
File "peerdisk-
print broker.
File "/usr/lib/
return self.__
File "/usr/lib/
verbose=
File "/usr/lib/
return self.single_
File "/usr/lib/
response = h.getresponse(
File "/usr/lib/
response.
File "/usr/lib/
version, status, reason = self._read_status()
File "/usr/lib/
line = self.fp.readline()
File "/usr/lib/
data = self._sock.
socket.error: [Errno 104] Connection reset by peer
Like I said, when I run it under python 2.6 I don't have any issues.