2

I have a problem to make IIS to allow download file with Bitrate Throottling. I set limit file to 100kb/s. There is no problem without bitrate limitation. But with limit I have a problem. I'm using a code similar to described in this article: Securing Large Downloads Using C# and IIS 7

I also tried to switch off IIS Bitrate Throottling and control bitrate "by hand" calculating with TimeSpan the bitrate and using Thread.Sleep(10) in a while...

But all my tries was useless, I don't get any exceptions.

to test download I use wget, this way:

wget -t 1 http://db.realestate.ru/yrl/RealEstateExportToYandex.xml

(you can try it with wget for windows)

this is a 240Mb text file, wget always stops, at random position of downloading, 5% - 60% and throws this error message:

Read error at byte ... (Connection reset by peer).

May be the problem is not with IIS, because in may localhost is working well, but not online on highly loaded server.

Community
  • 1
  • 1
Alexei
  • 1,289
  • 3
  • 19
  • 34

1 Answers1

1

Solved with this parameters specified in wget command:

wget -t 1 --header="Keep-Alive: 30000" -nv http://db.realestate.ru/yrl/RealEstateExportToYandex.xml
Alexei
  • 1,289
  • 3
  • 19
  • 34