"Do this, and come back when you're done"

Paul Rubin http
Sat Dec 13 16:12:09 EST 2003


"Donn Cave" <donn at drizzle.com> writes:
> Yes.  I may be missing something here, because the followups
> I have seen strike me as somewhat misguided, if they're not
> just fooling with you.  You already have two independent threads
> or processes here, one on each machine.  All you need to do is
> take the results from the remote machine AFTER the local computation.
> Move the line that says "remoteMD5hash = Socket.recv(256)" to
> after the block that ends with "localMD5hash = hasher.hexdigest()".
> No?

Can the remote process time out if the local side takes too long to
read from the socket?  That could happen if the two machines aren't
the same speed.




More information about the Python-list mailing list