Skip to Content


From Documentation:

If there is no connection avaliable in the pool,

a newly constructed SAPConnection object will returned.

My question is, if the max number of connections (MaxCapacity) is reached, does GetConnectionFromPool wait some specified time before returning with a connection? Or failing becasue no connection became available?

thanks, Philip

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Feb 07, 2005 at 10:06 AM

    MaxOpenConnections will force connection.Open to block. See other thread for details.

    Add a comment
    10|10000 characters needed characters exceeded

    • > - you can maintain a (global) count of the

      > connections you opened from the pool (you will also

      > need to keep track of those you close)

      This is exactly what happens internally in the Open call (and some other of cause). You can also just turn our "connections throtteling" feature off by setting MaxOpenConnections to 0 and implement your own strategy on your own by counting each Open and Dispose of your cnnections.

      We could also think about implementing a timeout for the maximum waiting time. If the time is over we would throw an exeption, because connection could not be opened without violating the MaxOpenConnections rule.

      We could perhaps implement this in a future patch version. We could do it if we there is a really good reason / business case for it.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.