Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7168231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:44:18+00:00 2026-05-28T14:44:18+00:00

When using the AmazonS3 object for the first time after the application starts, there

  • 0

When using the AmazonS3 object for the first time after the application starts, there is a large delay of approx 14 seconds. This large time delay is not present for all subsequent calls.

I have encountered this exact delay issue before with other HTTP related classes and it is caused when the class in question tries to determine the local machine’s proxy settings and whether to use them or not.

To stop this from happening with WebClient, you set WebClient.Proxy = null; and it doesn’t try to auto detect the proxy settings, but I cannot figure out how to disable the proxy detection functionality of the AmazonS3 object.

I have specifically tried setting the ProxyHost to null:

_s3Client = AWSClientFactory.CreateAmazonS3Client(awsAccessKey, awsSecretAccessKey, new AmazonS3Config { ProxyHost = null });

Which didn’t work. We are currently using the Amazon .NET SDK ‘v1.3.17.0’.

Is there a way to turn off the proxy detection?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T14:44:19+00:00Added an answer on May 28, 2026 at 2:44 pm

    Good question – I haven’t tried it myself and only analyzed the code, but the AmazonS3Config Class uses a private method configureWebRequest(), which in turn relies on the WebRequest Class to handle the actual HTTP connection. Now, WebRequest has a WebRequest.DefaultWebProxy Property , which is public static (i.e. you can set this within your application before calling CreateAmazonS3Client(()) :

    The DefaultWebProxy property gets or sets the global proxy. The
    DefaultWebProxy property determines the default proxy that all
    WebRequest instances
    use if the request supports proxies and no proxy
    is set explicitly using the Proxy property. [emphasis mine]

    The proxy auto detection you are experiencing is supposedly induced by the respective IE behavior:

    The DefaultWebProxy property reads proxy settings from the app.config
    file. If there is no config file, the current user’s Internet Explorer
    (IE) proxy settings are used.

    Consequently I’d hope that this can be disabled in a similar way as for the WebClient.Proxy Property you mentioned, albeit on the class level, as indeed strongly suggested by the last paragraph:

    If the DefaultWebProxy property is set to null, all subsequent
    instances of the WebRequest class
    created by the Create or
    CreateDefault methods do not have a proxy. [emphasis mine]


    Added by blexandre

    sample code from this answer would be

    System.Net.WebRequest.DefaultWebProxy = null;
    _s3Client = AWSClientFactory.CreateAmazonS3Client(awsAccessKey, awsSecretAccessKey);
    

    Note that this will disable the proxy for every web request, _client is created using it, so it is safe to do this, but be careful if you might have more requests pending from the WebRequest class

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there anyway to do a multipart upload using the AmazonS3 TransferUtility class and
I need to upload a given image using Amazon S3 I have this PHP:
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
Using C# and System.Data.SqlClient, is there a way to retrieve a list of parameters
Due to the lack of clientaccesspolicy.xml, there appears to be problems with using Amazon
I'm using Amazon S3 to store some mp3 files. My web application, uses the
I am using amazon S3 service with PHP by using this API https://github.com/tpyo/amazon-s3-php-class I
I am using .net, and I am trying to delete an object from my
I am hosting images on Amazon S3 and using them in my Flash application.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.