tornado: set max_clients to 20

we'd better find out a way to specify this in the config file though.
This commit is contained in:
lilydjwg 2018-07-22 23:02:07 +08:00
parent 00f7dccb39
commit 9f5028bbf0

View file

@ -11,7 +11,7 @@ AsyncIOMainLoop().install()
try:
import pycurl
AsyncHTTPClient.configure("tornado.curl_httpclient.CurlAsyncHTTPClient")
AsyncHTTPClient.configure("tornado.curl_httpclient.CurlAsyncHTTPClient", max_clients=20)
except ImportError:
pycurl = None