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

  • Home
  • SEARCH
  • 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 1048849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:31:22+00:00 2026-05-16T16:31:22+00:00

I maintain a ASP.NET web application that causes a user’s network connection to reset

  • 0

I maintain a ASP.NET web application that causes a user’s network connection to reset for several seconds when it executes a procedure. Therefore, the page request times out on the user’s end as they never receive the web application’s response (the connection dies before it gets the response packet).

To resolve this situation, I was contemplating having the ASP.NET page execute an asynchronous function that incorporates a Thread.Sleep(5000); // sleep for 5 seconds before executing the connection reset This way, the browser has 5 seconds to receive the page’s response before their connection resets.

I have concerns with using Thread.Sleep and asynchronous functions in ASP.NET though. I’ve never attempted to do it before, so I’m unsure of the potential problems it may cause. Does anyone see potential problems with starting an asynchronous thread that contains a Thread.Sleep in an ASP.NET application? If so, can you think of a better solution?

  • 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-16T16:31:23+00:00Added an answer on May 16, 2026 at 4:31 pm

    Placing Thread.Sleep in an asynchronous method can contribute to ThreadPool Starvation, as it blocks one of a limited number of threads for several seconds – that thread could be off servicing client requests.

    Instead, why not create a timer that fires after five seconds? Same effect, just register your delayed work in the timer’s event.

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

Sidebar

Ask A Question

Stats

  • Questions 512k
  • Answers 512k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Generally, the code that is executed at the beginning of… May 16, 2026 at 5:35 pm
  • Editorial Team
    Editorial Team added an answer if i use previous written code , i may take… May 16, 2026 at 5:35 pm
  • Editorial Team
    Editorial Team added an answer Your problem is algorithmic. What happens if two adjacent elements… May 16, 2026 at 5:35 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have an ASP.NET WebForms application that has a feature that requires the user
I have a ASP.NET web application which has more than 100 pages. Each page
We have a high volume web application based on ASP.NET 3.5 and SQL 2008
I've got an ASP.NET 3.5 Web Forms application in which a large chunk of
I'm building an application which (currently) consists of one web application (ASP.NET MVC) and
I've always found that defining URLs for other pages in a Web Application seems
I have a asp.net web-service which I use from my ASP.NET website. I can
I have a small web site where I maintain user data, and I maintain
I have an ASP.net application where Users aren't able to successfully complete certain actions,
I have an ASP.NET project that also uses a SQL MDF File. My target

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.