Comments (7)
It looks like the status is set to PENDING and doesn't change to FREE. I am using latest version
from tedious-connection-pool.
Are your database credentials correct? Are you able to make queries before calling release()? If so, will you put together a simple example that demonstrates the problem?
from tedious-connection-pool.
Yes, i have the right credentials. Yes, I am able to make queries before connection.release() too. I think i solved it once I removed connection.close(). Not sure, why, but certainly that was the problem. In regards to a simple example, the issue came up only when I had many connections to the server. I don't have a example yet, but i will once the issue comes again. thanks
from tedious-connection-pool.
That seems likely. I never built a unit test for close(). There are very few reasons to ever call it. It removes all the benefit of using the connection pool. I'll see if I can reproduce the behavior.
from tedious-connection-pool.
cool. thanks for ur help. i am actually new to database (and obviously very new to connection pooling), so thats why i wasn't using the tedious lib the right way
from tedious-connection-pool.
No problem. The best way is to just release the connection, so that it can be reused.
FYI, I was able to reproduce the issue you described with calling close() and then release(). I fixed it so the connection pool will ignore calls to release() if the connection has been closed. I also tried improve the documentation and example to make the usage of release() more clear.
from tedious-connection-pool.
great. thanks
from tedious-connection-pool.
Related Issues (20)
- Issue with connection closed HOT 13
- Update memory-usage test to add validation. HOT 2
- Error: Acquire Timeout Exceeded for queued queries. HOT 6
- error thrown in tedious-connection-pool when calling release() HOT 2
- Acquire calls do not timeout if pool is drained.
- Support tedious 2.0.1? HOT 3
- Allow prepared statements to persist across returning a connection to the pool HOT 2
- new maintainer ? HOT 4
- Multiple Request On Multiple Connection HOT 1
- Error: connection.release is not a function HOT 1
- Incompatibility with Rollup HOT 1
- ConnectionError: Failed to connect to <server name> in 15000ms
- 1.0.5 release may be incompatible with tedious 5.x release HOT 1
- Pause()/resume() doesn't work as expected with connection from connectionPool
- Pool fills up with 'USED' connections - node app restart required as a result HOT 1
- Timeouts don't seem to work as expected
- Draining the pool after releasing connections may cause write to destroyed stream HOT 3
- TypeError: cb is not a function HOT 2
- Is this project dead? HOT 7
- request.transformIntoExecuteSqlRpc() is not a function HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tedious-connection-pool.