Author amak
Recipients amak, irmen
Date 2009-03-28.21:38:15
SpamBayes Score 7.15822e-12
Marked as misclassified No
Message-id <>
OK, this is not necessarily a problem with our jython implementation:
see attached, which is the direct equivalent of the jython that Irmen provided: it generates the same exception, with no
jython involved.

I'm reasonably sure that this is a Windows specific thing as well, but I
need to check on a few different platforms.

I think this may be caused by our method using
java.nio.channels.Selector, which is really meant to be created once and
used for the whole duration of the server.

The jython is implemented using Selector, and creates and
destroys a Selector every single time the function is called.

The best way to work around this problem would be to use our select.poll
object, in the way it is intended to be used, i.e. create one for the
whole duration of the server.

I'm going to report a bug Sun about this, but I'm not optimistic that it
will be fixed (or even looked at, going on experience from previous
similar java bugs).

So we may just have to document this as a known bug, and live with it.

I want to do some more experimentation though.
Date User Action Args
2009-03-28 21:38:17amaksetmessageid: <>
2009-03-28 21:38:17amaksetrecipients: + amak, irmen
2009-03-28 21:38:17amaklinkissue1291 messages
2009-03-28 21:38:16amakcreate