search

Home  >  Q&A  >  body text

http - Python bolck download file, what is the best setting?

I have not studied the basics of the network. Generally, python download files are

while True:
    x.read(buffer_size) 

Go to download large files. But how much should this buffer_size be generally set to? 8192? 1024?

世界只因有你世界只因有你2834 days ago786

reply all(1)I'll reply

  • 代言

    代言2017-06-12 09:24:41

    Set to 8192, the default maximum readable size of the system is this number.

    reply
    0
  • Cancelreply