Commit Graph

12 Commits

Author SHA1 Message Date
David Wilson 6a2f88d6a3 issue #477: make mitogen.fork unsupported on Py<2.6. 2019-01-25 23:47:08 +00:00
David Wilson e180d310b5 tests: fix fork_test compat on 3.x. 2018-11-04 20:27:52 +00:00
David Wilson 175fc377d2 tests: remove hard-wired SSL paths from fork_test. 2018-11-03 20:38:39 +00:00
David Wilson 8a0b343760 issue #406: test for FD leak after every TestCase 2018-11-03 13:28:37 +00:00
David Wilson 410016ff47 Initial Python 3.x port work.
* ansible: use unicode_literals everywhere since it only needs to be
  compatible back to 2.6.
* compat/collections.py: delete this entirely and rip out the parts of
  functools that require it.
* Introduce serializable Kwargs dict subclass that translates keys to
  Unicode on instantiation.
* enable_debug_logging() must set _v/_vv globals.
* cStringIO does not exist in 3.x.
* Treat IOLogger and LogForwarder input as latin-1.
* Avoid ResourceWarnings in first stage by explicitly closing fps.
* Fix preamble_size.py syntax errors.
2018-07-07 14:55:47 +01:00
David Wilson 6d618593f3 issue #275: Python 2.6 reports linux as 'linux3'. 2018-06-25 01:35:49 +01:00
David Wilson b0ce6eecd7 fork: support on_start= argument. 2018-05-23 16:25:17 +01:00
David Wilson 3682ac6e29 fork: ensure importer handle is installed on the new router. 2018-04-09 16:37:51 +01:00
David Wilson bbb0f1bbd8 issue #155: fix double-fork behaviour and test it this time. 2018-03-29 23:57:24 +05:45
David Wilson fccca54068 tests: ensure OpenSSL is initialized prior to test. 2018-03-27 14:56:03 +05:45
David Wilson 4903052f42 fork: reseed Python/SSL PRNGs
Mac's SSL seems to have a pthread_atfork handler or similar that does
this for us, no clue if Linux is the same.
2018-03-27 11:58:17 +05:45
David Wilson 4f93c6823a issue #155: skeletal fork_test. 2018-03-24 16:28:13 +05:45