无法在Jetty服务器上下载大型文件 [英] It is not possible to download large files at Jetty server

查看:327
本文介绍了无法在Jetty服务器上下载大型文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Jetty 9服务器进行了几次测试下载,在这里下载了大约80 MB的单个文件。当下载次数少于55秒的时间没有达到下载时,通常都会结束,但是如果在55秒后进行下载,网络流量只能下载,而不会再剩下。

I made a few test downloads using the Jetty 9 server, where it is made multiple downloads of a single file with an approximate size of 80 MB. When smaller number of downloads and the time of 55 seconds is not reached to download, all usually end, however if any downloads in progress after 55 seconds the flow of the network simply to download and no more remains.

我尝试已经设置了超时和缓冲区Jetty,虽然这没有奏效。有没有人有这个问题或有什么建议如何解决? IIS和Apache Server上的测试工作非常好。使用JMeter进行测试。

I tried already set the timeout and the buffer Jetty, though this has not worked. Has anyone had this problem or have any suggestions on how to solve? Tests on IIS and Apache Server work very well. Use JMeter for testing.

推荐答案

Marcus,也许你只是碰到Jetty错误 472621

Marcus, maybe you are just hitting Jetty bug 472621?

编辑:所提到的错误是单独的超时在Jetty中适用于总体操作,而不仅仅是空闲时间。因此,通过设置http.timeout属性,您基本上定义了允许下载的最大时间,这反过来可能会导致慢客户端和/或大量下载超时错误。

The mentioned bug is a separate timeout in Jetty that applies to the total operation, not just idle time. So by setting the http.timeout property you essentially define a maximum time any download is allowed to take, which in turn may cause timeout errors for slow clients and/or large downloads.

干杯,
momo

Cheers, momo

这篇关于无法在Jetty服务器上下载大型文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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