WebRequest and Threadpools

  • Thread starter Thread starter Martin Brindle
  • Start date Start date
M

Martin Brindle

Hello there.

I'm after using a series of threads, from a threadpool, via async delegates,
to download files. I've noticed a few other people on here doing the same
thing, but my question is this.

Having tried something similiar previously, using the threadpool class to
queue my requests. Does the WebRequest class require a spare threadpool
thread to complete it's processing?

I ask this because without spare threads, it always seems to timeout. At
first I suspected too much traffic, but after re-implementing with my own
sloppy threadpool class, i could have more than 25 threads running without
timeouts.
 
There's a specific fixed number of threads this is possible to run
simultaneously, reaching that limit you get an exception.

Thanks,
Maciej
 
Back
Top