Message1688

Author amak
Recipients
Date 2007-07-01.19:19:27
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
OK, closing this bug now.

I have checked in code which maps the IllegalBlockingModeException to a select.error exception, with the error code corresponding to a newly introduced symbolic constant

Jython 2.2rc1 on java1.4.2_13
Type "copyright", "credits" or "license" for more information.
>>> import socket, select, errno
>>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>>> s.connect(('localhost',80))
>>> select.select([s],[],[])
Traceback (innermost last):
  File "<console>", line 1, in ?
  File "C:\jython_trunk\jython\dist\Lib\select.py", line 179, in select
  File "C:\jython_trunk\jython\dist\Lib\select.py", line 102, in register
error: (20000, 'socket must be in non-blocking mode')
>>> errno.errorcode[20000]
'ESOCKISBLOCKING'
>>>
History
Date User Action Args
2008-02-20 17:17:52adminlinkissue1745068 messages
2008-02-20 17:17:52admincreate