PS: Help pickling across sockets
Irmen de Jong
irmen at -NOSPAM-REMOVETHIS-xs4all.nl
Sun Aug 17 04:39:34 CEST 2003
Jonathan Hayward wrote:
> Just after posting the previous request, I realised that my test case
> worked after I added flushes. The next problem I have is that, in the
> real program, the server gets an EOFError when it first tries to read
> from the socket.
I'm not sure, but perhaps pickle doesn't work on sockets directly?
Perhaps it needs a random-access file object.
So, read all the data from the socket yourself, into a string
buffer, and run pickle on that.
That's what I do in Pyro :-)
--Irmen de Jong
More information about the Python-list