Message8687
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. |
|
Date |
User |
Action |
Args |
2014-06-19 00:23:34 | zyasoft | set | messageid: <1403137414.39.0.820832008276.issue2157@psf.upfronthosting.co.za> |
2014-06-19 00:23:34 | zyasoft | set | recipients:
+ zyasoft, mb_ |
2014-06-19 00:23:34 | zyasoft | link | issue2157 messages |
2014-06-19 00:23:33 | zyasoft | create | |
|