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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:52:54+00:00 2026-06-12T01:52:54+00:00

@usr and I are having a disagreement in another question about whether or not

  • 0

@usr and I are having a disagreement in another question about whether or not .NET will scavenge open connections that have been idle, but still maintain a held reference.

I maintain, based on documentation, that if the physical connection is idle for a period of time, it will be reclaimed after a period of time even if a SQLConnection object reference remains held.

usr claims that this won’t happen, and it only reclaims connections that no longer have references. His assertion as this would make connection pooling unreliable and would cause havoc with transactions.

I will admit, the documentation is vague about the issue of held references.

I’m looking for an authoritative answer on this, not just guessing. Either someone has experimented and proven either case, or someone with knowledge of the internal workings.

So which one is it?

EDIT:

I think the confusion here is with the terminology of “Closed”. What appears to be the case is that the documentation refers to closing the physical connection as “Removing” the connection from the pool. While “Closing” refers to releasing the open physical connection back into the pool for re-use.

Open connections can still be aborted, but it’s unclear if the pooler marks this as invalid if it’s still held as open by the client app (ie client app has not yet called close on the aborted connection) Not sure it really matters though, other than as part of the pool count.

  • 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-12T01:52:55+00:00Added an answer on June 12, 2026 at 1:52 am

    I can tell you with 100% certainty that the connection DOES NOT return to the pool until released. I had a session create a temporary table, and left it hanging while waiting for user input. The user comes back after 6 minutes, presses a button and it continues on the same SPID and life goes on against the temporary table.

    Applying logic, it makes sense because can you imagine the havoc if you lose the SPID just because you’ve been idle for X minutes? Should you keep having to “ping” SQL Server with a command just to keep it alive? (it would be insane)


    You appear to be confusing 2 concepts. When a Connection is closed, it returns to the pool. If it goes out of scope, it is implicitly closed -> returns to the pool. The reference to “idle” refers to when the connection in the pool becomes idle, not when it’s actively referenced and not closed. A held connection isn’t even in the pool to become eligible for any type of scavenging. Freeing resources from the pool makes sense, because a web-app can easily burst to 100s of connections, then for the next few months stay at around 20 or so active concurrent connections.

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

Sidebar

Related Questions

Just started learning PySide and is having problem with QTimer I have this #!/usr/bin/python
I'm having a curious problem. I have a bash script that is calling a
in /usr/local i now have two mysql folders: mysql-5.1.34-osx10.5-x86 mysql-5.1.37-osx10.5-x86_64 is it possible to
I'm having issues requiring 'digest/sha1' . ~$ ./configure --prefix=$HOME/usr --program-suffix=19 --enable-shared ~$ make ~$
I am having trouble compiling a program I have written. I have two different
I am working with the zone.tab under /usr/share/zoneinfo/zonetab and I am having trouble displaying
I'm having a problem where popen is deadlocking. Specifically, the thread (not the main
I'm having a pretty hard time with this! I have installed the java documentation
I am having two mysql instances on same machine. The installations are on /usr/loca/mysql1
I'm having some issues installing Rails. I have no experience with Ruby on Rails

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.