Comments (7)
Try the mysql-ping branch. I didn't test it, but it would fix the issue.
from libasynql.
okay, i am testing it, do you know what causes this? so i can reproduce it to test.
from libasynql.
It happens if there are no queries for a long time (depending on your MySQL configuration).
An alternative way to fix this is to change your MySQL settings for connection timeout. But MySQL configuration is very annoying.
from libasynql.
True, also will it be a problem if too many players join at the same time and there are too many queries to run?
from libasynql.
Usually, this only happens if there are too few queries. If this happens because of too many queries, perhaps some mechanism has identified your connection as a DoS and disconnected you, or the traffic is so high that it throttled, or some miscellaneous reasons. In these cases, it is not the responsibility of libasynql to fix.
from libasynql.
No i mean will it be a problem if all async workers are busy?
from libasynql.
Each async worker has its own MySQL connection. Disconnections happen independently.
In addition, libasynql has its own async pool, so it shouldn't be the case.
from libasynql.
Related Issues (20)
- Packets out of order HOT 5
- Add blob variable type. HOT 3
- If a query fails, the connection is broken HOT 2
- Cannot register stored procedure HOT 2
- Repeating block
- Server does not cascade shutdown or recover when SQL workers crash HOT 3
- Sqlite crashes when `strlen(file) === 1` HOT 4
- Add curl options HOT 2
- MySQL SSL Connection HOT 1
- Still causing lag HOT 5
- Data Loss in rows HOT 5
- Bug HOT 3
- Thread crashing instead of returning errors. HOT 10
- The variable `foo` is not used anywhere in the query! Check for typos. HOT 12
- Server crashes on PHP 8.1 due to not declaring return type of JsonSerializable::jsonSerialize() HOT 1
- Select queries (using variables) taking a very long time. HOT 5
- Calling libasynql functions won't execute until we call another one. HOT 9
- PM5 HOT 1
- SleeperNotifier bug HOT 1
- Virion Class Error HOT 3
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 libasynql.