gevent.resolver.blocking
– Non-cooperative resolver¶Bases: object
A resolver that directly uses the system’s resolver functions.
Caution
This resolver is not cooperative.
This resolver has the lowest overhead of any resolver and
typically approaches the speed of the unmodified socket
functions. However, it is not cooperative, so if name resolution
blocks, the entire thread and all its greenlets will be blocked.
This can be useful during debugging, or it may be a good choice if your operating system provides a good caching resolver (such as macOS’s Directory Services) that is usually very fast and functionally non-blocking.
Changed in version 1.3a2: This was previously undocumented and existed in gevent.socket
.
-> list of (family, type, proto, canonname, sockaddr)
Resolve host and port into addrinfo struct.
Return the true host name, a list of aliases, and a list of IP addresses, for a host. The host argument is a string giving a host name or IP number.
Return the IP address (a string of the form ‘255.255.255.255’) for a host.
Return the true host name, a list of aliases, and a list of IP addresses, for a host. The host argument is a string giving a host name or IP number.
Get host and port for a sockaddr.
Next page: Monitoring and Debugging gevent Applications