proxy.py/proxy/core/event
Abhinav Singh 98e6d0b3d4
`--threadless` default for `Python 3.8+` on `mac` and `linux` (#710)
* Explicit `multiprocessing.Manager.shutdown`

Multiprocessing manager is used within eventing core. From doc,
it appears to start a BaseManager which starts a server????
Seriously???? Anyways, using multiprocessing manager is a PITA
and mistake, as it doesn't even give us performance we expect.
Our proxy server can handle more requests than what multiprocess
manager can exchange between processes.

* `--threadless is now ON by default for `Python 3.8+` on `mac` and `linux` environments

* Clarity around why multiprocessing.Manager must be deprecated

* Add `--threaded` flag which can be used to fallback for environments where `--threadless` is now default

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* never used

* Update README

* Use `threaded=True` in tests which were written for threaded model

* Fix issue where sharing manager between global event queue and subscriber can lead to TypeError

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-11-09 01:34:17 +05:30
..
__init__.py Async proxy pool, Event manager, Custom access log, Expose loop to plugins (#645) 2021-11-01 01:19:19 +05:30
dispatcher.py Enable the `add-trailing-comma` pre-commit fixer (#661) 2021-11-04 16:58:36 +05:30
manager.py `--threadless` default for `Python 3.8+` on `mac` and `linux` (#710) 2021-11-09 01:34:17 +05:30
names.py Enable the `add-trailing-comma` pre-commit fixer (#661) 2021-11-04 16:58:36 +05:30
queue.py `--threadless` default for `Python 3.8+` on `mac` and `linux` (#710) 2021-11-09 01:34:17 +05:30
subscriber.py `--threadless` default for `Python 3.8+` on `mac` and `linux` (#710) 2021-11-09 01:34:17 +05:30