This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author neologix
Recipients giampaolo.rodola, neologix, pitrou
Date 2013-08-21.07:25:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAH_1eM00iO5g0YcKHHjEL-b9Kgzkjgxicd3r4fDmaFPkDuBChA@mail.gmail.com>
In-reply-to <1377032489.22.0.759563431169.issue18792@psf.upfronthosting.co.za>
Content
> Some ftplib tests sometimes time out. Seem they seem to try to connect to "localhost" (rather than "127.0.0.1"), I was wondering if this could be a DNS issue and if we should resolve "localhost" in advance like Charles-François did for some other tests (or simply hardcode "127.0.0.1", actually).

If it only happens on Windows >= 7 buildbots, then it's likely a
consequence of this:
http://serverfault.com/questions/4689/windows-7-localhost-name-resolution-is-handled-within-dns-itself-why

Apparently, since Windows 7, "localhost" doesn't appear in the hosts
file anymore: so, depending on your DNS resolver settings, this could
perfectly explain such timeouts (assuming it's not a firewall issue).

Hard-cording 127.0.0.1 for this test should be OK, because the server
setup explicitly binds an AF_INET socket. We'll probably have to check
the rest of the test suite for similar issues.
History
Date User Action Args
2013-08-21 07:25:08neologixsetrecipients: + neologix, pitrou, giampaolo.rodola
2013-08-21 07:25:08neologixlinkissue18792 messages
2013-08-21 07:25:07neologixcreate