Issue2406

classification
Title: socket.IPV6_V6ONLY is missing from Jython 2.7
Type: Severity: major
Components: Core Versions: Jython 2.7
Milestone:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: mishikal@yahoo.com, zyasoft
Priority: high Keywords:

Created on 2015-09-25.20:16:59 by mishikal@yahoo.com, last changed 2018-03-05.20:11:49 by jeff.allen.

Messages
msg10297 (view) Author: Quanah Gibson-Mount (mishikal@yahoo.com) Date: 2015-09-25.20:16:59
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.
msg10298 (view) Author: Jim Baker (zyasoft) Date: 2015-09-29.03:35:19
Need to determine equivalent setting for Netty 4; unfortunately it's not as simple as setting ChannelConfig with a given ChannelOption (http://netty.io/4.0/api/io/netty/channel/ChannelOption.html)
msg10301 (view) Author: Jim Baker (zyasoft) Date: 2015-09-29.06:11:31
Perhaps resolvable by modifying the support in _socket._get_jsockaddr2; and binding multiple addresses to a socket in _socket._realsocket.bind
msg10694 (view) Author: Jim Baker (zyasoft) Date: 2016-02-02.15:23:38
Impacts Tornado support: #2458
History
Date User Action Args
2018-03-05 20:11:49jeff.allensetmilestone: Jython 2.7.2 ->
2016-02-08 15:52:45zyasoftsetpriority: high
2016-02-02 15:23:38zyasoftsetmessages: + msg10694
2015-12-29 04:07:27zyasoftsetmilestone: Jython 2.7.2
2015-09-29 06:11:31zyasoftsetmessages: + msg10301
2015-09-29 03:35:20zyasoftsetnosy: + zyasoft
messages: + msg10298
2015-09-25 20:16:59mishikal@yahoo.comcreate