文件下载不完全通过慢速连接 [英] File downloads incomplete over slow connection

查看:153
本文介绍了文件下载不完全通过慢速连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有下载的合理的速度连接罚款,但几乎总是在较慢的连接(28KBytes /秒,例如)不完整的一个网站(Apache网络服务器)一个15MB的文件。不完整的文件的大小是随机的,从2至13 MB。我在Safari和火狐核实的行为,可以忽略不计的延迟的连接上。既不浏览器指示该文件是不完整的用户,但大小比15MB小。我试图通过直接的联系,并通过一个PHP脚本下载使用适当的标题下载:相同的结果

有其他人遇到这种问题?


解决方案

  safe_mode设置=关
max_input_time设置= 9000
memory_limit的= 1073741824
的post_max_size = 1073741824
file_uploads =开
的upload_max_filesize = 1073741824
max_file_uploads = 100
于allow_url_fopen =开
default_socket_timeout = 60
的session.gc_maxlifetime = 1800
session.cache_expire = 180

I have a 15MB file on a website (Apache webserver) that downloads fine on reasonable speed connections, but is almost always incomplete on slower connections (28KBytes/sec, for example). The size of the incomplete file is random, from 2 to 13 MB. I have verified the behavior in both Safari and Firefox, on a connection with negligible latency. Neither browser indicates to the user that the file is incomplete, but the size is smaller than 15MB. I have tried downloading via a direct link and via a PHP download script with the proper headers: same results.

Has anyone else experienced this kind of issue?

解决方案

safe_mode = off
max_input_time = 9000
memory_limit = 1073741824
post_max_size = 1073741824
file_uploads = On
upload_max_filesize = 1073741824
max_file_uploads = 100
allow_url_fopen = On
default_socket_timeout = 60
session.gc_maxlifetime = 1800
session.cache_expire = 180

这篇关于文件下载不完全通过慢速连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆