Message6405
This is probably some basic user error on my part. I understood that IPv6 was suspect due to prior JRE implementations, but I thought I would try it with the latest available versions. This is a small portion of client server code, only the client side needed to show the issue. Generally, this code works under plain python 2.7.1
I'm guessing that maybe this may be a failure just under my OS/JRE combo.
D:\jy252rc4>jython
Jython 2.5.2rc4 (Release_2_5_2rc4:7200, Feb 14 2011, 23:43:30)
[Java HotSpot(TM) 64-Bit Server VM (Sun Microsystems Inc.)] on java1.6.0_24
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket._use_ipv4_addresses_only(False)
>>> HOST,PORT="::1",9999
>>> sock=socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
>>> sock.connect((HOST,PORT))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<string>", line 1, in connect
File "D:\jy252rc4\Lib\socket.py", line 975, in connect
self._do_connect(addr)
File "D:\jy252rc4\Lib\socket.py", line 971, in _do_connect
raise _map_exception(jlx)
socket.error: (10047, 'Address family not supported by protocol family: See http
://wiki.python.org/jython/NewSocketModule#IPV6addresssupport')
>>>
Using Windows 7, Jython 2.5.2rc4, Java 1.6.0_24: |
|
Date |
User |
Action |
Args |
2011-02-25 20:24:06 | xjyvb3 | set | recipients:
+ xjyvb3 |
2011-02-25 20:24:06 | xjyvb3 | set | messageid: <1298665446.17.0.956491261388.issue1711@psf.upfronthosting.co.za> |
2011-02-25 20:24:06 | xjyvb3 | link | issue1711 messages |
2011-02-25 20:24:05 | xjyvb3 | create | |
|