Message8687

Author zyasoft
Recipients mb_, zyasoft
Date 2014-06-19.00:23:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403137414.39.0.820832008276.issue2157@psf.upfronthosting.co.za>
In-reply-to
Content
Michael, your application seems to be a good test for this support in changing the timeout/blocking, which was only partially supported in Jython before (and not for SSL).

I agree about the apparent redundancy here. Reviewing the code for _realsocket in the _socket module in Jython, timeout is set to _defaulttimeout, which by default is None. The implementation of settimeout will for a true value set the timeout to None.

The only thing I can think of that could possibly explain this is if you are assuming thread safety. Apparently CPython does claim thread safety (http://bugs.python.org/issue1544279), if not in the docs, but there are some obvious places where this isn't the case in Jython's implementation.

I should point out that this thread safety claim doesn't seem to be actually true; see for example of the implementation of makefile and the implementation of _fileobject, which we share with one minor modification with CPython.
History
Date User Action Args
2014-06-19 00:23:34zyasoftsetmessageid: <1403137414.39.0.820832008276.issue2157@psf.upfronthosting.co.za>
2014-06-19 00:23:34zyasoftsetrecipients: + zyasoft, mb_
2014-06-19 00:23:34zyasoftlinkissue2157 messages
2014-06-19 00:23:33zyasoftcreate