Skip to main content

Microsoft Silverlight

Answered Question WebDav Upload Request Timer limit of 5 mins back in?RSS Feed

(0)

MarauderzMY
MarauderzMY

Member

Member

607 points

265 Posts

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
MarauderzMY

Member

Member

607 points

265 Posts

Answered Question

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.

Bill Reiss
Bill Reiss

Contributor

Contributor

4836 points

917 Posts

Silverlight MVP

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 3
My blog (rss feed)

MarauderzMY
MarauderzMY

Member

Member

607 points

265 Posts

Re: Re: WebDav Upload Request Timer limit of 5 mins back in?

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

Bill Reiss
Bill Reiss

Contributor

Contributor

4836 points

917 Posts

Silverlight MVP
Answered Question

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 3
My blog (rss feed)

MarauderzMY
MarauderzMY

Member

Member

607 points

265 Posts

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
MarauderzMY

Member

Member

607 points

265 Posts

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 ;)

Bill Reiss
Bill Reiss

Contributor

Contributor

4836 points

917 Posts

Silverlight MVP

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 3
My blog (rss feed)

MarauderzMY
MarauderzMY

Member

Member

607 points

265 Posts

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.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities