[issue3461] smtplib does not fully support IPv6 in EHLO

2008-07-28 Thread Derek Morr
New submission from Derek Morr <[EMAIL PROTECTED]>: On an IPv6-only machine, smtplib does not send an IPv6 address in the EHLO. It sends "EHLO [0.0.0.0]" instead. For example, on a v6-only network with stateless autoconfiguration enabled (a common configuration), smtplib will

[issue1654] HTTPSConnection is not IPv6-capable

2007-12-18 Thread Derek Morr
New submission from Derek Morr: httplib.HTTPSConnection is not IPv6-capable, even though httplib.HTTPConnection is. HTTPSConnection has its own connect() method which does not call socket.getaddrinfo(). -- components: Library (Lib) messages: 58769 nosy: dmorr severity: normal status

[issue1655] imaplib is not IPv6-capable

2007-12-18 Thread Derek Morr
New submission from Derek Morr: imaplib.IMAP4 and IMAP4_SSL do not use IPv6-capable name resolution APIs. Attached is a patch (lifted from httplib) that enables IPv6 in their open() methods. -- components: Library (Lib) files: imaplib_ipv6.patch messages: 58775 nosy: dmorr severity

[issue1654] HTTPSConnection is not IPv6-capable

2007-12-18 Thread Derek Morr
Derek Morr added the comment: My apologies. This should have been filed against Python 2.3. I see it was fixed with checkin 54546. Go ahead and close this bug. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1664] nntplib is not IPv6-capable

2007-12-19 Thread Derek Morr
New submission from Derek Morr: nntplib hardcodes AF_INET for the socket address family. This prevents it from using IPv6. Attached is a patch that converts NNTP.__init__() to use socket.create_connection(), which is IPv6-capable. -- components: Library (Lib) files: nntplib_ipv6.patch

[issue1655] imaplib is not IPv6-capable

2007-12-19 Thread Derek Morr
Derek Morr added the comment: I think it makes more sense to use socket.create_connection(), which performs the getaddrinfo call. It makes the patch against imaplib more compact. I've attached a new patch that uses create_connection() Added file: http://bugs.python.org/file9004/imaplib

[issue1664] nntplib is not IPv6-capable

2008-12-29 Thread Derek Morr
Derek Morr added the comment: Yes. The patch is against 2.6. It uses the socket.create_connection() helper function, which was added in 2.6. See http://svn.python.org/view? rev=54546&view=rev for the commit message. If you really want to apply it to 2.5, it's trivial to adapt the pat

[issue1675455] Use getaddrinfo() in urllib2.py for IPv6 support

2009-01-01 Thread Derek Morr
Derek Morr added the comment: Senthil, I don't think your gethost_addrinfo() function will work. On a v6- enabled machine, it will only return v6 or v4 names. Shouldn't it return both (since a machine could have both v4 and v6 addresses)? For example, on my machine, I have the

[issue1675455] Use getaddrinfo() in urllib2.py for IPv6 support

2009-01-01 Thread Derek Morr
Derek Morr added the comment: Question: Why does FTPHandler.ftp_open() try to resolve the hostname()? The hostname will be passed into connect_ftp(), then into urllib.ftpwrapper(), and eventually into ftplib.FTP.connect(), which is IPv6-aware. ___ Python

[issue1675455] Use getaddrinfo() in urllib2.py for IPv6 support

2009-01-01 Thread Derek Morr
Derek Morr added the comment: My understanding is that the FileHandler checks if the file:// URL contains the hostname or localhost IP of the local machine (isn't that what FileHandler.names is for?). So, shouldn't the following URLs all open the same file: file:///foo.txt file:/

[issue1664] nntplib is not IPv6-capable

2009-03-31 Thread Derek Morr
Derek Morr added the comment: Any chance of this being applied soon? It's been sitting in the bugtracker for over a year now. -- ___ Python tracker <http://bugs.python.org/i

[issue5111] httplib: wrong Host header when connecting to IPv6 litteral URL

2009-03-31 Thread Derek Morr
Changes by Derek Morr : -- nosy: +dmorr ___ Python tracker <http://bugs.python.org/issue5111> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1664] nntplib is not IPv6-capable

2009-03-31 Thread Derek Morr
Derek Morr added the comment: I'm confused by that. In order to apply a 3 line patch (which replaces one standard library function with another), you want an entire test suite written for nntplib? If we're willing to accept that nttplib works reasonably well now, why is the

[issue1664] nntplib is not IPv6-capable

2009-05-14 Thread Derek Morr
Derek Morr added the comment: Thanks. Is there any chance of getting bug 1655 fixed as well? imaplib has the same issue as nntplib, and the patch is identical. -- ___ Python tracker <http://bugs.python.org/issue1

[issue5625] test_urllib2 fails - urlopen error file not on local host

2009-05-15 Thread Derek Morr
Changes by Derek Morr : -- nosy: +dmorr ___ Python tracker <http://bugs.python.org/issue5625> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue3461] smtplib does not fully support IPv6 in EHLO

2010-07-04 Thread Derek Morr
Derek Morr added the comment: You're right. My mistake when I made the patch. I've attached a new one without the trailing else -- Added file: http://bugs.python.org/file17863/smtplib.patch ___ Python tracker <http://bugs.python.

[issue3461] smtplib does not fully support IPv6 in EHLO

2010-07-12 Thread Derek Morr
Derek Morr added the comment: I'm not sure how to best write a unit test for this. The patch should only be invoked if the client doesn't have a name-served hostname and has IPv6 enabled. Also, there are several IPv4-isms in the smt