.net Amazon S3上传速度和maxConnections配置设置

.net Amazon S3上传速度和maxConnections配置设置,.net,amazon-s3,.net,Amazon S3,我正在为AmazonS3的各种配置做一些上传速度测试,我注意到了一些奇怪的事情 如果我将我的maxConnections设置为4,Amazon会缓慢上传(这正是我所期望的)。但是,如果我将它设置为2,它的运行速度与设置为8-16时的运行速度相同 <system.net> <connectionManagement> <add address="*" maxconnection="2" /> </connectionManagement&g

我正在为AmazonS3的各种配置做一些上传速度测试,我注意到了一些奇怪的事情

如果我将我的
maxConnections
设置为4,Amazon会缓慢上传(这正是我所期望的)。但是,如果我将它设置为2,它的运行速度与设置为8-16时的运行速度相同

<system.net>
  <connectionManagement>
    <add address="*" maxconnection="2" />
  </connectionManagement>
</system.net>


为什么在使用Amazon S3时“2”似乎没有任何效果?

当我调试上传代码时,我发现如果配置文件的“maxConnections”设置为2,则AmazonS3Config.ConnectionLimit设置为50。但是,如果我直接将其设置为2,它将保持不变

s3ClientCfg.ConnectionLimit = ServicePointManager.DefaultConnectionLimit;
如果我通过.config文件将其设置为1、3、4或任何其他值,我不会注意到这一点。显然,他们决定,如果该值来自配置文件,并且是默认值2,则将其设置为50以提高开箱即用的上传速度