How to determine whether client and server are on the same host

Malte Forkel malte.forkel at berlin.de
Wed Nov 27 23:30:57 CET 2013


Am 27.11.2013 00:37, schrieb Gregory Ewing:
>
> What would happen if you tried the file-based method when
> it wasn't a local connection? Is there a danger of it
> "succeeding" on the wrong machine and damaging something?
> 
I have been thinking about that.

There is a slight risk that the client might be talking to a server on a
remote host while there is a similar server running on the local
machine. That (local) server then might use a file by the same name as
the file on the remote server the client wants to operate on. In that
(unlikely) case I would mix up things big time...






More information about the Python-list mailing list