Python gevent.monkey.patch_socket() Examples

The following are 1 code examples of gevent.monkey.patch_socket(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module gevent.monkey , or try the search function .
Example #1
Source File: gevent.py    From python-pool-performance with MIT License 5 votes vote down vote up
def init_pool(self, worker_count):
        monkey.patch_socket()
        return Pool(worker_count)