Not able to upload in a passenger app behing apache

徘徊边缘 提交于 2019-12-02 04:31:56

What if it takes 1200 seconds to upload 610155 bytes? That seems perfectly reasonable. HTTP transfers are usually not as aggressive as mechanisms like scp and can tend to drag a lot more since HTTP is not especially efficient at uploading.

You can try opening up your timeout, if that has a direct effect on the situation, or remember that some clients may be connected via a firewall that, for whatever reason, limits connections to a maximum amount of time, often of around ten minutes.

Can you replicate the problem from a connection with a similar speed? Or on a larger file?

John Bachir

Unfortunately this is probably a Safari bug. See this passenger bug report:

Not able to upload in a passenger app behing apache

And this ancient webkit bug report:

https://bugs.webkit.org/show_bug.cgi?id=5760

Which then points to a bug report at apple that either cannot be viewed or has been closed. I just experienced the problem with safari 5.0 (6533.16) on 10.6.4 with passenger 2.2.14, so clearly the problem has not been solved. Very frustrating.

The solution is to turn off keepalive for your vhost.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!