WEBDISK need to purchase a speed limits and traffic features. Don't know how to implement tornado! ?
QOS & Real-time network traffic
Sorry!Please forgive me do not understand English!
There's nothing built in for this, but you can do your own rate limiting with RequestHandler.flush and IOLoop.add_timeout. Write a chunk, flush it, and wait a bit before writing the next one.
Thank you for taking time to help me to answer,I also very like to use a tornado,But also want to ask you two questions.
1、Often appear the following warning how should solve?
WARNING:root:Read error on 7: [Errno 104] Connection reset by peer
WARNING:root:error on read
2、The following a logical question, but don't know how to change him. OK for the first time, second time stuck in it.
filename = "dist.rar"
self.set_header("Content-Disposition", "attachment;filename="+filename )
down_rate = 20
with open(filename) as openfile:
data = openfile.read(down_rate * 1024)
if not data:
Hope to help have a look at the thank you
This is not a bug report; for questions and support you should use the mailing list instead: http://groups.google.com/group/python-tornado