views:

192

answers:

2

I have a silverlight 3 application that makes several long running requests to a WCF service. While these calls are in progress, any other later WCF calls are queued by silverlight 3 because it will only do two requests at the same time, thus making the application suck :(

How can I cancel the long running blocking requests?

A: 

Maybe this thread will help.

Adel Hazzah
A: 

Not directly answer your question, but you can make more than two simultaneous outgoing http requests.

If your application makes a lot of outgoing http requests, you will be throttled by .Net. By default, .Net only supports two simultaneous outgoing http requests. To get around that, you need to add a system.net section to app.config.

Here is an example snippet.

<system.net>
    <defaultProxy>
        <proxy usesystemdefault="false" bypassonlocal="true" />
        <bypasslist>
            <add address = "[^.]+\.[^.]+\.ntwk\.msn\.net$" />
            <add address = "[^.]+\.phx\.gbl$" />
        </bypasslist>
    </defaultProxy>
    <connectionManagement>
        <add address = "*" maxconnection = "12" />
    </connectionManagement>
</system.net>
erxuan
Does this apply to Silverlight?
Kim