WebRequest and Threadpools

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.
 
M

Maciej

There's a specific fixed number of threads this is possible to run
simultaneously, reaching that limit you get an exception.

Thanks,
Maciej
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top