Message218704
Milan: using 'localhost' is incorrect, since the string 'localhost' will not always resolve to the local host IP, while passing None to getaddrinfo will.
It is significant that the example fails. We need a test for this case (the imap tests have been historically very poor, though we've improved that somewhat in the past few years).
Although it is a low-probability thing, someone might be depending on self.host being '' by default, so I think the better (and simpler) fix is to convert '' to None in the _create_socket method. |
|
Date |
User |
Action |
Args |
2014-05-17 15:04:13 | r.david.murray | set | recipients:
+ r.david.murray, barry, sYnfo, dveeden, zvyn |
2014-05-17 15:04:13 | r.david.murray | set | messageid: <1400339053.27.0.226067517269.issue18540@psf.upfronthosting.co.za> |
2014-05-17 15:04:13 | r.david.murray | link | issue18540 messages |
2014-05-17 15:04:12 | r.david.murray | create | |
|