Welcome Guest Search | Active Topics | Sign In | Register

Serving large files via ProcessRequest Options
Touchway
Posted: Tuesday, April 18, 2017 2:29:07 PM
Rank: Member
Groups: Member

Joined: 8/5/2016
Posts: 17
Code: C#
Hello guys,
in our software we use a custom CacheHandler in order to cache all files to hard disc. So far, so good.
In case the same request comes again and the cache file already exist, we serve it from hard disc,
using the ProcessRequest function and the response.writeFile(...) method.

Everything is working fine on smaller files - if we serve large files like videos (> 100 MB) the browser
stops playing the video at 3/4 of the length.

Do we need to specify something important before calling the "writeFile"?

Thanks

Best regards
eo_support
Posted: Tuesday, April 18, 2017 2:57:07 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,079
Hi,

Please check the time out value you passed to your resource handler. The time out value is passed to you through the ResourceHandler's constructor:

https://www.essentialobjects.com/doc/eo.webbrowser.resourcehandlerconstructor.aspx

The default value is one and a half minute (90 seconds). So if your request takes more than 90 seconds to serve, then the request will be canceled. If your video seems to be stop working after 90 seconds, then this most likely is the cause. In that case increase the timeout value should resolve the issue for you.

Thanks!
Touchway
Posted: Wednesday, April 19, 2017 1:18:15 AM
Rank: Member
Groups: Member

Joined: 8/5/2016
Posts: 17
Hi,
you are my hero :-)

Thank you so much!!!
eo_support
Posted: Wednesday, April 19, 2017 8:21:19 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,079
Great. I assume that means it worked for you. :)


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.