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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:13:14+00:00 2026-06-05T02:13:14+00:00

When uploading a file using HttpWebRequest, the first two writes to the request stream

  • 0

When uploading a file using HttpWebRequest, the first two writes to the request stream always complete almost instantly. I thought there must be some kind of buffering happening so I disabled so I did this

_req.AllowWriteStreamBuffering = false;

But it hasn’t made any difference.

It’s kind of annoying because I measure upload speed by averaging the last 10 write speeds together, and so at first my application is showing an insanely fast speed and then dropping back down to 50kbps or so.

Would be nice if I could measure speed starting from the first write.

Any ideas?

  • 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-05T02:13:15+00:00Added an answer on June 5, 2026 at 2:13 am

    The TCP stack is likely to take an initial write window from the application really quickly. It is sending the data in the background (after having accepted it instantly).

    AllowWriteStreamBuffering tells HttpWebRequest not to buffer. It does not tell TCP what to do.

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

Sidebar

Related Questions

I'm implementing file uploading using Richfaces version 4.0. I've noticed, that there is quite
I'm uploading a file using the UploadFile method on the WebClient object. When the
I am currently looking in to some file uploading using Java Server Faces. I've
Hi am using apache commons upload for uploading files File file=this.getFile();//getter method for the
I am uploading a file in my ASP.NET MVC application using Uploadify. Controller: public
I working on adding file uploading to my web application. I'm using an iframe
In C#, I'm uploading a video file to Facebook from a server, using the
I'm using blueimp JQuery file upload script to fancy the uploading of files. You
Here's the class I am working on. After uploading a file using a form,
I've seen a few articles, forum posts talking about uploading a file using NSURLRequest

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.