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 <e.h.c...@outlook.com> 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 - Mono-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list >
_______________________________________________ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list