Thursday, July 19, 2007

How to configure .net applications to have more than two download sessions

Hi,

This post applied to applications which download using the WebClient class of the .net framework.

To change the connection number merge the following with the app.config or web.config of your application.

<configuration>
<system.net>
<connectionmanagement>
<add address="*" maxconnection="10">
</connectionmanagement>
</system.net>
</configuration>


This will change the limit number of the connection to 10 to every server.

For more information refer to http://support.microsoft.com/default.aspx?scid=kb;en-us;821268 and http://msdn2.microsoft.com/en-us/library/ms998549.aspx

Ami

Wednesday, July 18, 2007

How to configure Internet Explorer to have more than two download sessions

Hi,

By default the Internet Explorer is limited to two downloads at a time this article explain how to change this : http://support.microsoft.com/kb/282402

In short, copy the following text into a file named update.reg with notepad, save it in Unicode format, and run it with double click.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
MaxConnectionsPer1_0Server"=dword:0000000a
MaxConnectionsPerServer"=dword:0000000a

This will raise the connections limit to 10 (0xA) per server.

Note that this configuration is per user, and doesn't apply to the whole machine. Also note that it applies only to Internet Explorer and not to other applications.

Ami

Tuesday, July 17, 2007

Smart Thread Pool

Hi,

This is my new blog.

I have an article in CodeProject which I published long time ago, and I keep updating it.
I am going to publish a new version soon with some new features.

The SmartThreadPool link is: SmartThreadPool

Ami