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 8870349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:42:15+00:00 2026-06-14T17:42:15+00:00

Has the HttpWebRequest.Timeout Property behavior changed between .NET 3.5 and 4.0? The documentation seems

  • 0

Has the HttpWebRequest.Timeout Property behavior changed between .NET 3.5 and 4.0? The documentation seems to imply so:

From the .NET 3.5 MSDN doc:

Timeout is the number of milliseconds that a subsequent synchronous
request made with the GetResponse method waits for a response, and the
GetRequestStream method waits for a stream. If the resource is not
returned within the time-out period, the request throws a WebException
with the Status property set to WebExceptionStatus.Timeout.

The .NET 4.0 doc adds this sentence right in the middle:

The Timeout applies to the entire request and response, not
individually to the GetRequestStream and GetResponse method calls.

This seems to be a rather large change. The “entire request and response” could mean the entire time spent sending the request and receiving the response. This seems to contradict the previous sentence, since waiting for the response stream to be ready might be quick — basically just the time for the server to retrieve/prepare the response — but receiving the entire response over the stream could take a long time.

Has anyone compared this behavior between 3.5 and 4.0?

  • 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-06-14T17:42:17+00:00Added an answer on June 14, 2026 at 5:42 pm

    If you look at the code example on the .net code (msdn doc page that you reference) the request and response are two separate operations therefor the timeout operation on the request is copied to the response. So if the default is 100 ms it is 100 ms for the request and 100 ms for the response not an elapsed time of 100 for both.

    Note that if you anticipate long running requests or responses consider asynchronous operations instead.

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

Sidebar

Related Questions

.NET has the HttpWebRequest and WebClient classes for simulating a browser's requests. I'd google
I am trying to make an HttpWebRequest from an ASP.Net page on a server
Trying to consume the URI cot.ag/o1LnfW from .NET with the HttpWebRequest, I get the
Has the asp.net mvc team implemented a default model binding for enums? One that
Has anyone met this error? Right now i am trying to do switch from
I have a WCF service (.NET 4) hosted in IIS. My service contract has
I have some property OwnerId that has each page in my application. I need
The situation: I was using HttpWebRequest.BeginGetResponse as documented in msdn. I had a timer
I need to call HttpWebRequest asynchronously, the problem is that BeginGetResponse method has as
I am receiving a timeout from the Sharepoint Client Managed Object model. Microsoft.SharePoint.Client.ServerException: The

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.