python2.7
gevent
Use the GEvent coroutine to initiate an HTTP request
Using python’s own standard DNS library,
Frequent errors
[Errno 8] nodename nor servname provided, or not known
Check some articles, DNS resolution is a problem with a lot of concurrency.
Solution: Instead of using Python’s DNS resolution standard library, use gEvent’s built-in DNS resolution module to replace the standard library.
(When the following patch_all() is implemented, GEvent will help us replace a series of standard libraries.)
gevent
Use the GEvent coroutine to initiate an HTTP request
Using python’s own standard DNS library,
Frequent errors
[Errno 8] nodename nor servname provided, or not known
Check some articles, DNS resolution is a problem with a lot of concurrency.
Solution: Instead of using Python’s DNS resolution standard library, use gEvent’s built-in DNS resolution module to replace the standard library.
(When the following patch_all() is implemented, GEvent will help us replace a series of standard libraries.)
from gevent import monkey;monkey.patch_all()
At this point, [Errno 8] Nodename Nor Servname provided, or Not known issues only happen the first time DNS is resolved, only once.
Read More:
- [Solved] socket.gaierror: [Errno 8] nodename nor servname provided, or not known
- In windows, “cmake” is not an internal or external command, nor a runnable program or batch file.
- Ant Design ‘cross env’ is not an internal or external command, nor is it an error reporting problem for a runnable program
- Neither –kubeconfig nor –master was specified. Using the inClusterConfig. This might not work
- Failed to restart xxx.service: The name org.freedesktop.PolicyKit1 was not provided by any..
- gazebo7 CMake Error:Could not find a package configuration file provided by “gazebo_plugins“
- Error in installing torch vision or pilot on Linux or Jetson nano: the headers or library files could not be found for JPEG
- The media could not be loaded, either because the server or network failed or because the format is
- Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘https://xxx.cn’) does n
- [robot_launch.launch] is neither a launch file in package [kinova_gazebo] nor is
- Error: Rule can only have one resource source (provided resource and test + include + exclude)
- INFO Starting development server…. ERROR Error: Rule can only have one resource source (provided
- Problems encountered after Maven installation or upgrade: could not find or load main class org.codehaus.plexus .class…..
- Idea project prompt: symbol not found or package does not have a solution
- [Solved] ERROR Error: No module factory availabl at Object.PROJECT_CONFIG_JSON_NOT_VALID_OR_NOT_EXIST ‘Error
- Virtual environment: error: virtualenv is not compatible with this system or executable
- Jstack command execution error: unable to open socket file: target process not responding or hotspot VM not loaded
- This application failed to start because it could not find or load the QT platform
- seaborn.load_ Data set error urlerror: < urlopen error [winerror 10060] the connection attempt failed because the connecting party did not reply correctly after a period of time or the connected host did not respond
- IntelliJ idea error: package not found or symbol not found