Parallel HttpWebRequest to the same host

G

Guest

Hi,
I am sending a time-consuming HttpWebRequest asynchronously and would like
to get the current progress. Obvious solution, it would seem, to set progress
in a session variable and send the second (parallel) HttpWebRequest to obtain
this progress. This does not seem to work for me: the second request returns
response only after the fist (long one) is completed. I have tried to play
with HttpWebRequest .ServicePoint.ConnectionLimit and
HttpWebRequest.ConnectionGroupName, but without any luck. Moreover,
HttpWebRequest.ConnectionGroupName does not seem to have any effect, i.e.
when I set HttpWebRequest.ConnectionGroupName property and then try to read
HttpWebRequest.ServicePoint.ConnectionName it is not changed and still reads
“httpâ€.
Any clues?

Kind regard,
Veronica
 
J

Joerg Jooss

Veronica said:
Hi,
I am sending a time-consuming HttpWebRequest asynchronously and would
like to get the current progress. Obvious solution, it would seem, to
set progress in a session variable and send the second (parallel)
HttpWebRequest to obtain this progress. This does not seem to work
for me: the second request returns response only after the fist (long
one) is completed. I have tried to play with HttpWebRequest
.ServicePoint.ConnectionLimit and HttpWebRequest.ConnectionGroupName,
but without any luck.

Hm... that should work. Did you try setting HttpWebRequest.KeepAlive to
false as well? Can you post some code that shows the problem?

Moreover, HttpWebRequest.ConnectionGroupName
does not seem to have any effect, i.e. when I set
HttpWebRequest.ConnectionGroupName property and then try to read
HttpWebRequest.ServicePoint.ConnectionName it is not changed and
still reads “httpâ€. Any clues?

AFAIK ConnectionGroupName is only relevant in the context of unsafe
authentication sharing.

Cheers,
 

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