Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Tornado AsyncHTTPClient support persistance connection?

Does Tornado AsyncHTTPClient support persistance(Keep-Alive) connection? The official document is not so clear for this feature.

like image 585
leeyiw Avatar asked Feb 19 '26 18:02

leeyiw


1 Answers

By default (when using simple_httpclient), persistent connections are not currently supported (as of Tornado 4.2). When configured to use curl_httpclient, persistent connections are supported.

AsyncHTTPClient.configure('tornado.curl_httpclient.CurlAsyncHTTPClient')
like image 82
Ben Darnell Avatar answered Feb 21 '26 07:02

Ben Darnell



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!