--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornado+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Tornado Web Server" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python-tornado/7trIoyCch5k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python-tornado+unsubscribe@googlegroups.com.
On Aug 23, 2016, at 6:54 PM, Cong Wang <congfa...@gmail.com> wrote:I have tried your suggestion, and when I run http://localhost:8888,here comes no problem but I did see nothing in the temporary directory,so what is the problem?
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornado+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Tornado Web Server" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python-tornado/7trIoyCch5k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python-tornado+unsubscribe@googlegroups.com.
> To unsubscribe from this group and stop receiving emails from it, send an email to python-tornado+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Tornado Web Server" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python-tornado/7trIoyCch5k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python-tornado+unsubscribe@googlegroups.com.
On Aug 29, 2016, at 2:19 AM, Cong Wang <congfa...@gmail.com> wrote:
yeah!It really works for me.I have tried to add something new to the code(for example check the uid and gid)I have submitted the newest code to :https://github.com/congfairy/leaf.gitThe problems I still have are:1:In the server side,it tried to send data in 64K chunk,but on the client side ,the chunk size are all different,so how could we manage the chunk size the client receive?it seems that on the network,several chunks will be merged together?2:so until now,in the StreamingRequestHandler side,all the file data are transfer in binary?I didn't to use some serializing or deserializing tools to trabsfer the data(such as protobuf)?3:I don't think I can manage the async and threalpool very well,actually I didn't use this in the ListRequestHandler.If you have time,could you help me to change this function to async?I think this will help a lot for me to get familiar with async in tornado.Thanks4:I have found that when I download some really big files ,here comes some problem,so where do you think the problems come from?
<image.png><image.png>Best regardsCong
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
On Aug 29, 2016, at 8:53 AM, Kevin LaTona <li...@studiosola.com> wrote:
I just ran a few test here with that code on a much larger file than I had started with.
My test file gets to 104.9MB every time and shuts down saying the file is too large (the same error message you are getting).
Time to re-think this code or approach on how to solve moving a big file this way.-Kevin
On Aug 29, 2016, at 2:19 AM, Cong Wang <congfa...@gmail.com> wrote:
yeah!It really works for me.I have tried to add something new to the code(for example check the uid and gid)I have submitted the newest code to :https://github.com/congfairy/leaf.gitThe problems I still have are:1:In the server side,it tried to send data in 64K chunk,but on the client side ,the chunk size are all different,so how could we manage the chunk size the client receive?it seems that on the network,several chunks will be merged together?
2:so until now,in the StreamingRequestHandler side,all the file data are transfer in binary?I didn't to use some serializing or deserializing tools to transfer the data(such as protobuf)?
3:I don't think I can manage the async and threalpool very well,actually I didn't use this in the ListRequestHandler.If you have time,could you help me to change this function to async?I think this will help a lot for me to get familiar with async in tornado.Thanks4:I have found that when I download some really big files ,here comes some problem,so where do you think the problems come from?<image.png><image.png>Best regardsCong
2016-08-29 8:44 GMT+08:00 Kevin LaTona <li...@studiosola.com>:
Cong,
While in theory that code works I am still not convinced using the StreamIO is the best way to upload large multiple GB files like how you are wanting.
If it was me, I would be looking at how to work with Tornado and the ThreadPoolExecutor calls.
Moving large files is a pain as read and writes will block the main IOLoop thread which is why passing it off to a thread pool should make better sense.
The code you had and I tweaked is still using Tornado’s main ioLoop thread.
Spend sometime on Google as there is lots of examples out there to give ideas how of using Tornado and ThreadPoolExecuto can go.
Or maybe someone else will jump in here to share other ideas as well.
yeah!It really works for me.I have tried to add something new to the code(for example check the uid and gid)I have submitted the newest code to :https://github.com/congfairy/leaf.gitThe problems I still have are:1:In the server side,it tried to send data in 64K chunk,but on the client side ,the chunk size are all different,so how could we manage the chunk size the client receive?it seems that on the network,several chunks will be merged together?
2:so until now,in the StreamingRequestHandler side,all the file data are transfer in binary?I didn't to use some serializing or deserializing tools to trabsfer the data(such as protobuf)?
3:I don't think I can manage the async and threalpool very well,actually I didn't use this in the ListRequestHandler.If you have time,could you help me to change this function to async?I think this will help a lot for me to get familiar with async in tornado.Thanks
4:I have found that when I download some really big files ,here comes some problem,so where do you think the problems come from?
Best regardsCong
> To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Tornado Web Server" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python-tornado/7trIoyCch5k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python-tornad...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
On Aug 29, 2016, at 6:21 PM, Ben Darnell <b...@bendarnell.com> wrote:Tornado limits the amount of data it will accept in a response to make it harder for users or attackers to fill up your memory or disk. To accept very large files, you need to pass max_body_size to the AsyncHTTPClient constructor.
tornado.simple_httpclient.
SimpleAsyncHTTPClient
,how could I add this parameter to my client?
--
You received this message because you are subscribed to a topic in the Google Groups "Tornado Web Server" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python-tornado/7trIoyCch5k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python-tornado+unsubscribe@googlegroups.com.
1. Oh,thanks a lot for these reply ,I will do some amend to my code.As there is so much information,I hope I got all.So the biggest problem for me is I need try to use threadpool and async together to transfer big file in case the the main IOLOOP blocks.Also,I need to look into running multiple instances of Tornado behind nginx.2.About the max_body_size parameter,I didn't find the parameter in AsyncHTTPClient configure,I just found that on thetornado.simple_httpclient.
SimpleAsyncHTTPClient
,how could I add this parameter to my client?
--
To unsubscribe from this group and all its topics, send an email to python-tornad...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
--
To unsubscribe from this group and all its topics, send an email to python-tornado+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornado+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Tornado Web Server" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python-tornado/7trIoyCch5k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python-tornado+unsubscribe@googlegroups.com.
On Aug 30, 2016, at 12:55 AM, Cong Wang <congfa...@gmail.com> wrote:1. Oh,thanks a lot for these reply ,I will do some amend to my code.As there is so much information,I hope I got all.So the biggest problem for me is I need try to use threadpool and async together to transfer big file in case the the main IOLOOP blocks
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to python-tornad...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to python-tornado+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornado+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Tornado Web Server" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python-tornado/7trIoyCch5k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python-tornado+unsubscribe@googlegroups.com.