import tornado.ioloop
import tornado.web
import tornado.httpclient
config = {
#'connect_timeout': 50.0,
#'request_timeout': 50.0,
‘proxy_host’: ‘my_proxy’,
‘proxy_port’: my_port
}
def handle_request(response):
if response.error:
print “Error:”, response.error
else:
print response.body
tornado.ioloop.IOLoop.instance().stop()
http_client = tornado.httpclient.AsyncHTTPClient()
http_client.fetch("http://some_site.ru", handle_request, **config)
tornado.ioloop.IOLoop.instance().start()
интернет - через прокси, выходит по таймауту, прописал прокси как параметр в fetch - не помогло
у соседа отрабатывает все нормально, у него выделенный канал