Re: Issues with concurrent HttpWebRequests

Gonzalo Paniagua Javier <[email protected]>
Newsgroups gmane.comp.gnome.mono.general
Message-ID <CANkhFq-TS0rKwMQcS4cWv+s2b4fp_L82_yvYBN11oxNssjsSFw@mail.gmail.com>
If the requests are going to the same host, you need to raise the limits in
system.net/connectionManagement (
https://msdn.microsoft.com/en-us/library/fb6y0fyc.aspx).

-Gonzalo

On Fri, Aug 21, 2015 at 11:07 AM, EStar <[email protected]> wrote:

> I'm trying to run several HttpWebRequests in parallel and have been having
> an
> issue where the more requests I try to run in parallel, the longer each
> request seems to take.  The requests take noticeably longer in parallel
> than
> they do serially.
>
> Using profiling I'm seeing the requests block on GetRequestStream.
>
> Is there some known issue here? Am I missing some setting other than
> ServicePointManager.DefaultConnectionLimit that helps run more web requests
> in parallel? Is there something I can do to help resolve this? I saw bug
> 14644 but it has been open without progress for a year.
>
> I have tried this in mono 3.12 linux and 4.0.2 mac
>
> Repro:  Program.txt
> <http://mono.1490590.n4.nabble.com/file/n4666517/Program.txt>
>
>
>
>
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/Issues-with-concurrent-HttpWebRequests-tp4666517.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist  -  [email protected]
> http://lists.ximian.com/mailman/listinfo/mono-list
>

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.