[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-list
Subject:    Re: [Mono-list] Issues with concurrent HttpWebRequests
From:       Gonzalo Paniagua Javier <gonzalo.mono () gmail ! com>
Date:       2015-08-22 6:41:59
Message-ID: CANkhFq-TS0rKwMQcS4cWv+s2b4fp_L82_yvYBN11oxNssjsSFw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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.code@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
>

[Attachment #5 (text/html)]

<div dir="ltr">If the requests are going to the same host, you need to raise the \
limits in <a href="http://system.net/connectionManagement">system.net/connectionManagement</a> \
(<a href="https://msdn.microsoft.com/en-us/library/fb6y0fyc.aspx">https://msdn.microso \
ft.com/en-us/library/fb6y0fyc.aspx</a>).<div><br></div><div>-Gonzalo</div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 21, 2015 at 11:07 AM, \
EStar <span dir="ltr">&lt;<a href="mailto:e.h.code@outlook.com" \
target="_blank">e.h.code@outlook.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">I&#39;m trying to run several HttpWebRequests in parallel and \
have been having an<br> issue where the more requests I try to run in parallel, the \
longer each<br> request seems to take.   The requests take noticeably longer in \
parallel than<br> they do serially.<br>
<br>
Using profiling I&#39;m seeing the requests block on GetRequestStream.<br>
<br>
Is there some known issue here? Am I missing some setting other than<br>
ServicePointManager.DefaultConnectionLimit that helps run more web requests<br>
in parallel? Is there something I can do to help resolve this? I saw bug<br>
14644 but it has been open without progress for a year.<br>
<br>
I have tried this in mono 3.12 linux and 4.0.2 mac<br>
<br>
Repro:   Program.txt<br>
&lt;<a href="http://mono.1490590.n4.nabble.com/file/n4666517/Program.txt" \
rel="noreferrer" target="_blank">http://mono.1490590.n4.nabble.com/file/n4666517/Program.txt</a>&gt;<br>
 <br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a \
href="http://mono.1490590.n4.nabble.com/Issues-with-concurrent-HttpWebRequests-tp4666517.html" \
rel="noreferrer" target="_blank">http://mono.1490590.n4.nabble.com/Issues-with-concurrent-HttpWebRequests-tp4666517.html</a><br>
 Sent from the Mono - General mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Mono-list maillist   -   <a \
href="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</a><br> <a \
href="http://lists.ximian.com/mailman/listinfo/mono-list" rel="noreferrer" \
target="_blank">http://lists.ximian.com/mailman/listinfo/mono-list</a><br> \
</blockquote></div><br></div>



_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic