Message4365

Author irmen
Recipients irmen
Date 2009-03-28.00:47:35
SpamBayes Score 7.660539e-15
Marked as misclassified No
Message-id <1238201256.2.0.438930012007.issue1291@psf.upfronthosting.co.za>
In-reply-to
Content
on a certain use of select(), jython crashes with an IOException:
Exception in thread Thread:Traceback (most recent call last):
  File "F:\jython25b3\Lib\threading.py", line 247, in _Thread__bootstrap
    self.run()
  File "F:\jython25b3\Lib\threading.py", line 238, in run
    self._target(*self._args, **self._kwargs)
  File "server.py", line 23, in handle
    rsock,wsock,esock=_selectfunction([csock],[],[],2)  # <-- causes the
crash
  File "F:\jython25b3\Lib\select.py", line 213, in cpython_compatible_select
    return native_select(read_fd_list, write_fd_list, outofband_fd_list,
timeout)
  File "F:\jython25b3\Lib\select.py", line 171, in native_select
    pobj = poll()
  File "F:\jython25b3\Lib\select.py", line 63, in __init__
    self.selector = java.nio.channels.Selector.open()
IOException: java.io.IOException: Unable to establish loopback connection

I am using the cpython_compatible_select function from jython's select
module.

See attached server.py and client.py that show the problem (the
server.py will crash after a short while)
It seems to be related to using
History
Date User Action Args
2009-03-28 00:47:36irmensetrecipients: + irmen
2009-03-28 00:47:36irmensetmessageid: <1238201256.2.0.438930012007.issue1291@psf.upfronthosting.co.za>
2009-03-28 00:47:36irmenlinkissue1291 messages
2009-03-28 00:47:35irmencreate