|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <database.h>
Public Attributes | |
| std::chrono::seconds | connect {1} |
| For connecting. | |
| std::chrono::seconds | answer {3} |
| std::chrono::milliseconds | fail_fast {5000} |
How long MySQL has to answer, and what happens when it doesn't. A world's tick waits for the reads that load a player who joins, so a MySQL that hangs would hang the world.
Definition at line 38 of file database.h.
| std::chrono::seconds nanommo::MysqlTimeouts::answer {3} |
For each read and each write on the connection, longer than the two seconds a statement waits for a lock, which fails by itself. MySQL's client counts them in seconds.
Definition at line 44 of file database.h.
| std::chrono::seconds nanommo::MysqlTimeouts::connect {1} |
For connecting.
Definition at line 40 of file database.h.
| std::chrono::milliseconds nanommo::MysqlTimeouts::fail_fast {5000} |
After MySQL didn't answer in time, or couldn't be reached, each call fails at once for this long, without asking it.
Definition at line 47 of file database.h.