Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
gevent / src / gevent / tests / test__issue230.py
Size: Mime:
import gevent.monkey
gevent.monkey.patch_all()

import socket
import multiprocessing

# Make sure that using the resolver in a forked process
# doesn't hang forever.


def block():
    socket.getaddrinfo('localhost', 8001)


def main():
    socket.getaddrinfo('localhost', 8001)

    p = multiprocessing.Process(target=block)
    p.start()
    p.join()

if __name__ == '__main__':
    main()