()
| 101 | |
| 102 | |
| 103 | def _patch_eventlet(): |
| 104 | import eventlet.debug |
| 105 | |
| 106 | eventlet.monkey_patch() |
| 107 | blockdetect = float(os.environ.get('EVENTLET_NOBLOCK', 0)) |
| 108 | if blockdetect: |
| 109 | eventlet.debug.hub_blocking_detection(blockdetect, blockdetect) |
| 110 | |
| 111 | |
| 112 | def _patch_gevent(): |