On Wed, Jun 18, 2008 at 1:51 PM, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > Amaury Forgeot d'Arc <amauryfa <at> gmail.com> writes: >> >> OK, I am not a tcp expert. >> How about the following patch? >> It seems to me that it is wrong for the server to lie about the >> address it listens to. > > Maybe I'm missing something but... if the client part defaults to connecting > to "localhost" in TCP mode, why doesn't the server part also default to > listening on "localhost" in TCP mode? Having different address detection > algorithms on both ends sounds like a recipe for bugs like this. > > In any case, perhaps one should ask guidance to the original author before > making important changes like this one.
The server component *is* listening to localhost by default. The client in the code I pasted has the server's .address attribute passed into it to tell the client where to connect to. -jesse _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com