Salut Gem, Merci pour votre réponse,
I still haven't managed to get to the bottom of what is happening, but the error always seems to occur when the read function is called from line 77, but by this point it should already have read stuff from the socket (unless I am mistaken - quite possible!) so I don't understand why there isn't the rest of the message still there waiting to be read. 64 def myreceive(self): 65 def read(socket, size): 66 buf='' 67 while len(buf) < size: 68 chunk = self.sock.recv(size - len(buf)) 69 if chunk == '': 70 raise RuntimeError, "socket connection broken" 71 buf += chunk 72 return buf 73 74 size = int(read(self.sock, 8)) 75 buf = read(self.sock, 1) 76 exception = buf != '0' and buf or False 77 res = cPickle.loads(read(self.sock, size)) Anyway I have now changed the login settings to: > Server: 127.0.0.1 > Port: 8069 > Protocol Connection: XML-RPC > and I have not had the problem reoccur (yet!), not a proper solution but it seems to have resolved the problem for now. Thanks, :-) Dave. -- David Harper -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=38341#38341 -------------------- m2f --------------------
_______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users
