Page view counter
WebDav Upload Request Timer limit of 5 mins back in? Subscribe to this thread
Last post 07-13-2008 12:47 PM by MarauderzMY. 8 replies.
Sort Posts:
06-28-2008 3:18 PM
WebDav Upload Request Timer limit of 5 mins back in?

Hey Frog69, did you guys reinstate back the 5 minute request timeout on the WebDav again? previously I was able to upload large 20MB videos, now my PUTs are timeing out around 4.7 minutes... it has happen a few times already and always at 4.7 minutes.. so that's just weird...

MarauderzMY

Loading...
Joined on 05-03-2007
Posts 218
07-06-2008 11:43 AM
Marked as Answer
Re: WebDav Upload Request Timer limit of 5 mins back in?

I've just finished uploading a 25MB file in 80 minutes... :( so I guess I managed to figured out what was stopping me from uploading large files.

It would seems like the missing link was that I need to set SendChunked of my httpwebrequest to true. And now I'm able to upload large files.

MarauderzMY

Loading...
Joined on 05-03-2007
Posts 218
07-11-2008 9:22 AM
Re: WebDav Upload Request Timer limit of 5 mins back in?

SendChunked seems to really slow down the process, you may want to try setting the request's ReadWriteTimeout instead and see if that helps. It defaults to 5 minutes so that seems a bit suspicious.


Bill Reiss, Coauthor of Hello! Silverlight 2
My blog (rss feed)

Bill Reiss

Loading...
Joined on 05-01-2007
Tampa, FL
Posts 894
07-13-2008 10:09 AM
Re: Re: WebDav Upload Request Timer limit of 5 mins back in?

Bill my readwritetimeout is already at Integer.Maxvalue... so..any other ideas? ;)

MarauderzMY

Loading...
Joined on 05-03-2007
Posts 218
07-13-2008 11:21 AM
Marked as Answer
Re: Re: WebDav Upload Request Timer limit of 5 mins back in?

Can you try the sample I posted here:

http://www.bluerosegames.com/slsexplorer.zip

and see if it will allow you to do any files that take longer? If not, I'm out of ideas, maybe it is a server issue.


Bill Reiss, Coauthor of Hello! Silverlight 2
My blog (rss feed)

Bill Reiss

Loading...
Joined on 05-01-2007
Tampa, FL
Posts 894
07-13-2008 12:08 PM
Re: Re: Re: WebDav Upload Request Timer limit of 5 mins back in?

The main difference between your upload code and mine is that you've set allowwritestreambuffer to true. I think that's more of a client side setting, and it doesn't affect the server side. But let me just check it and see.

MarauderzMY

Loading...
Joined on 05-03-2007
Posts 218
07-13-2008 12:32 PM
Re: Re: Re: Re: WebDav Upload Request Timer limit of 5 mins back in?

ok, so I've set allowwritestreambuffering to false and preauthenticate to true on my code as well...

 Seems to be working. 5 mins already has passed with no break. And it's faster. That's great, thanks for the heads up Bill.

Now to try it on normal mode and see if Frog and team did any tweaking without telling us ;)

MarauderzMY

Loading...
Joined on 05-03-2007
Posts 218
07-13-2008 12:42 PM
Re: Re: Re: Re: WebDav Upload Request Timer limit of 5 mins back in?

Ok great, hope it works for you. Did you turn off chunking too?


Bill Reiss, Coauthor of Hello! Silverlight 2
My blog (rss feed)

Bill Reiss

Loading...
Joined on 05-01-2007
Tampa, FL
Posts 894
07-13-2008 12:47 PM
Re: Re: Re: Re: Re: WebDav Upload Request Timer limit of 5 mins back in?

Yeahm sendchunked was at it's default value, which is false according to the docs.

Anyway retried upload just now with allowwritestreambuffering to true and preauthenticate to false. Fails at 5 mins... so I guess it is necessary to set those 2 flags if uploading takes a while.

thanks for the help again.

MarauderzMY

Loading...
Joined on 05-03-2007
Posts 218
Microsoft Communities