Download 'Network Timeout' - Shared File Module

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
7/5/2012 12:40:15 PM
Gravatar
Total Posts 9
Robert

Download 'Network Timeout' - Shared File Module

I recently moved our mp site from Server 2003 IIS 6 Full Trust to server 2008 R2 IIS 7.5 running Full Trust.

The issue I'm having is some of our large file downloads (50+ MB), they seem to timeout after about 2 minutes..if users have a quick connection, everything is fine and the files can be downloaded, if it's a bit slower, things seem to stall at 2 minutes until a network timeout occurs (browser error message)

We have another app running on the same IIS box that doesn't have problems with large downloads (30MB+), so I'm leaning towards feeling like it's a Mojo Config problem.

Any ideas?

Thanks

Robert

Here are a few of the log messages

2012-07-05 10:05:35,908 ERROR 174.253.199.184 - en-US - /Portal/SharedFiles/Download.aspx?pageid=2&mid=2&fileid=215 - mojoPortal.Web.Global - 174.253.199.184 /Portal/SharedFiles/Download.aspx?pageid=2&mid=2&fileid=215 Referrer(http://gis.jacksoncounty.org/Portal/gis-data.aspx) useragent Mozilla/5.0 (Linux; U; Android 4.0.4; en-us; DROID RAZR 4G Build/6.7.2-180_DHD-16_M4-31) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
System.Web.HttpException (0x80070016): The remote host closed the connection. The error code is 0x80070016.
   at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect)
   at System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush()
   at System.Web.HttpResponse.Flush(Boolean finalFlush)
   at System.Web.HttpWriter.Write(String s)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Page.Render(HtmlTextWriter writer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2012-07-05 10:07:33,393 ERROR 174.253.199.184 - en-US - /Portal/SharedFiles/Download.aspx?pageid=2&mid=2&fileid=215 - mojoPortal.Web.Global - 174.253.199.184 /Portal/SharedFiles/Download.aspx?pageid=2&mid=2&fileid=215 Referrer(none) useragent AndroidDownloadManager
System.Web.HttpException (0x80004005): Request timed out.
2012-07-05 10:26:18,408 ERROR 71.34.229.5 - en-US - /Portal/SharedFiles/Download.aspx?pageid=2&mid=2&fileid=215 - mojoPortal.Web.Global - 71.34.229.5 /Portal/SharedFiles/Download.aspx?pageid=2&mid=2&fileid=215 Referrer(none) useragent Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322)
System.Web.HttpException (0x80004005): Request timed out.
2012-07-05 10:35:03,533 ERROR 71.34.229.5 - en-US - /Portal/SharedFiles/Download.aspx?pageid=2&mid=2&fileid=215 - mojoPortal.Web.Global - 71.34.229.5 /Portal/SharedFiles/Download.aspx?pageid=2&mid=2&fileid=215 Referrer(none) useragent Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322)
System.Web.HttpException (0x80004005): Request timed out.

 

7/5/2012 2:00:33 PM
Gravatar
Total Posts 18439

Re: Download 'Network Timeout' - Shared File Module

Hi,

The thing to understand is that downloading a file directly by an http request (ie probably what your other apps are doing) is going to be much more efficient than the way files are downloaded from the Shared Files feature which is designed to protect the files. So the files are stored on disk with a .config extension which is not allowed to be downloaded by an http request. If the user is in an allowed role then we are opening a filestream to the file and copying it to the response stream of the web request.

If the files don't need protection it would be better to not use the Shared Files feature but just upload them directly to disk and link to them ie from the wysiwyg editor using the link toolbar item you can upload files and link to files.

If the problem is caused by a request timeout on the server you could potentially set a long executionTimeout on the httpruntime element in Web.config

In the latest code we have a config setting you can use without setting it longer globally on the httpruntime element. I'm not sure this change was before the 2.3.8.5 release so it may not work unless you have a recent build from source code or after the coming release of mojoPortal so you may need to use the httpruntime setting for now.

<add key="DownloadScriptTimeout" value="-1" />

-1 means it will use whatever is configured by the httpRuntime element in Web.config, a higher value will be set explicitly as the request timeout on download requests in Shared Files.

Hope that helps,

Joe

7/5/2012 3:26:07 PM
Gravatar
Total Posts 9
Robert

Re: Download 'Network Timeout' - Shared File Module

Thanks Joe,

  In web.config I commented out the existing <httpRuntime> and uncommented out the commented one.  Seems to be working fine now.  Thanks So much

<httpRuntime maxRequestLength="2097151" executionTimeout="3600" useFullyQualifiedRedirectUrl="true"/>
<!--  <httpRuntime requestValidationMode="2.0" maxUrlLength="560" maxQueryStringLength="2048"  /> -->

 

Robert

 

7/5/2012 3:26:52 PM
Gravatar
Total Posts 9
Robert

ARe: Download 'Network Timeout' - Shared File Module

And thank you for taking the time to explain what was actually happening...very helpful

 

Thanks again

Robert

 

You must sign in to post in the forums. This thread is closed to new posts.