Python gevent worker是否使用gunicorn(烧瓶)自动检测I/O操作
将gevent worker与gunicorn一起使用时,它是否检测io操作并自动切换上下文 考虑到下面的代码段,get请求会被阻塞吗Python gevent worker是否使用gunicorn(烧瓶)自动检测I/O操作,python,python-requests,gunicorn,gevent,Python,Python Requests,Gunicorn,Gevent,将gevent worker与gunicorn一起使用时,它是否检测io操作并自动切换上下文 考虑到下面的代码段,get请求会被阻塞吗 from flask import Flask from requests_html import HTMLSession session = HTMLSession() app = Flask(__name__) @app.route('/') def hello_world(): response = session.get("http
from flask import Flask
from requests_html import HTMLSession
session = HTMLSession()
app = Flask(__name__)
@app.route('/')
def hello_world():
response = session.get("http://example.com")
return response.html.find('title', first=True).text