The error message from your stack trace is indicative of a client abort of the download. The client need not be the actual end user but can also be a proxy server in between. If you have Apache in front of Tomcat and are using mod proxy ajp, 60 seconds is the default value of the TimeOut directive in Apache.
You can increase the time out for the proxy requests to Tomcat with the ProxyTimeOut directive. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Apache timeout - large file downloads Ask Question. Asked 5 years, 6 months ago.
Active 5 years, 6 months ago. If problems persist, you'll need to fix the download using an alternate method. Resume the download if it paused when your connection timed out. If you can't resume the download, restart it.
Reboot your wireless router and modem. If you're having problems with your wireless Internet, connect your computer to the router with an Ethernet cable.
Download the file from a different server, if possible. Refer to the example in the BeginGetResponse method. So, a solution could be to to use these methods directly or the new Task -based versions: GetRequestStreamAsync and GetResponseAsync ; but more often than not, you already have an existing code base that uses the synchronous methods, and changing the code to make it fully asynchronous is usually not trivial.
So, the easy approach is to create synchronous wrappers around BeginGetRequestStream and BeginGetResponse , with a way to specify a timeout for these operations:. These extension methods can be used instead of GetRequestStream and GetResponse ; each of them will timeout if they take too long, but once you have the request stream, you can take as long as you want to upload the data.
Note that the stream itself has its own read and write timeout 5 minutes by default , so if 5 minutes go by without any data being uploaded, the Write method will cause an exception. Under Connections , type the number of seconds that you want in the Connection time-out box, and then click OK. However, you cannot upload files that are larger than 28 MB, even though you have configured the large file upload setting when you are running Windows SharePoint Services on a Windows Server based computer that has IIS 7.
Typically, you receive an error message that resembles one of the following:. To do this, follow these steps:. Increase the value of maxAllowedContentLength in the requestLimits node. For example, edit the file as follows to set this value to its maximum size:.
0コメント