Message4370

Author amak
Recipients amak, irmen
Date 2009-03-28.21:38:15
SpamBayes Score 7.15822e-12
Marked as misclassified No
Message-id <1238276297.27.0.819460698745.issue1291@psf.upfronthosting.co.za>
In-reply-to
Content
OK, this is not necessarily a problem with our jython implementation:
see attached server.java, which is the direct equivalent of the jython
server.py 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 select.select is implemented using Selector, and creates and
destroys a Selector every single time the select.select 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.
History
Date User Action Args
2009-03-28 21:38:17amaksetmessageid: <1238276297.27.0.819460698745.issue1291@psf.upfronthosting.co.za>
2009-03-28 21:38:17amaksetrecipients: + amak, irmen
2009-03-28 21:38:17amaklinkissue1291 messages
2009-03-28 21:38:16amakcreate