Comments (4)
I believe this was solved on the forums. Feel free to reopen if there are still unanswered questions!
from mysql-kit.
I believe this was solved on the forums. Feel free to reopen if there are still unanswered questions!
Unfortunately it wasn't solved, though some minimal discussion did take place there.
Plus my question was quite specific: does MySQLKit have any keep-alive mechanisms in place that would make the connection pool more reliable? I know I should probably study the MySQLNIO sources and find out myself, I just thought someone already knows.
from mysql-kit.
No MySQLKit uses AsyncKit's ConnectionPool which has no concept of a keep alive, so I believe MySQL does nothing for this. cc @gwynne
from mysql-kit.
No MySQLKit uses AsyncKit's ConnectionPool which has no concept of a keep alive, so I believe MySQL does nothing for this. cc @gwynne
So this is quite a big question, isn't it? Let's say I leave my app running and there are no client requests for a while, say for many hours. Does this mean the connections that are in the ConnectionPool will all time out (because mysqld closes them after a period of inactivity) and the next client request to my app will fail to run a trivial SQL query because it will be handed a broken connection from the pool?
Strange thing is, nobody seems to be complaining about this on the SwiftNIO forums, which means.... there is in fact some keep-alive mechanism in place, somewhere?
I'd really like to hear someone's informed answer before I dive into experimenting and studying the sources myself.
P.S. so far, I built something based on UNIX sockets (i.e. the MySQL connection is local) which don't seem to timeout. I'm just not sure about TCP sockets.
from mysql-kit.
Related Issues (20)
- Decoding rows with null values to optionals fails
- 'SQLEnumSyntax' and 'SQLAlterTableSyntax' missing in MySQL-kit 4.0.0-beta.3.3 HOT 1
- Value of type 'DatabaseQuery' has no member 'idKey' - FluentMySQLDriver 4.0.0-beta.3 HOT 1
- FluentMySQLDriver crashes when saving dates HOT 4
- Build error on Swift CLI project HOT 4
- Cannot decode String from extracted JSON value
- Error when selecting from database HOT 1
- SimpleQuery fails decoding data version : +3.0.0 HOT 4
- conversion error should include data in question HOT 1
- Support encoding, and collation for database, table, and column HOT 4
- `.text` creates a VARCHAR(255) column HOT 6
- Crash on any mysql query HOT 1
- Rakan
- Hostname Validation Error HOT 2
- hard to use in readme's code such as ... HOT 6
- SSH connection HOT 1
- Add api to support high level transaction HOT 2
- Connection CharacterSet is incorrectly determined HOT 5
- Not working with Swift Playground (4.4.1) on iPadOS 17.4. HOT 1
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 mysql-kit.