Message10297

Author mishikal@yahoo.com
Recipients mishikal@yahoo.com
Date 2015-09-25.20:16:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1443212219.97.0.303517000039.issue2406@psf.upfronthosting.co.za>
In-reply-to
Content
Testing jython 2.7 vs python 2.7 on the same host.

Python 2.7:
>>> import socket
>>> s = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
>>> s.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_V6ONLY, 0)
>>> s.bind(("localhost", 7171))
>>> s.listen(5)
>>> quit()


Jython 2.7:
>>> import socket
>>> s = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
>>> s.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_V6ONLY, 0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'IPV6_V6ONLY'

This is a serious deficiency that makes it difficult to implement dual-stack IPv4/IPv6 support.
History
Date User Action Args
2015-09-25 20:17:00mishikal@yahoo.comsetrecipients: + mishikal@yahoo.com
2015-09-25 20:16:59mishikal@yahoo.comsetmessageid: <1443212219.97.0.303517000039.issue2406@psf.upfronthosting.co.za>
2015-09-25 20:16:59mishikal@yahoo.comlinkissue2406 messages
2015-09-25 20:16:59mishikal@yahoo.comcreate