Commit Graph

3 Commits

Author SHA1 Message Date
7b54e1449e 创建了vector保存固定数量的mysql链接,使用时取vector的, 暂时解了回收链接的问题。 而不是无限的新建
封了一层回收mysql链接的函数

解决了表面上的内存泄漏

30个链接 在4MB 左右
而新建 返回到池 在2.5 左右

注:后续好好看一下 mysqlpp 的连接池内容
Grab a free connection from the pool.
This method creates a new connection if an unused one doesn't exist, and destroys any that have remained unused for too long. If there is more than one free connection, we return the most recently used one; this allows older connections to die off over time when the caller's need for connections decreases. Do not delete the returned pointer. This object manages the lifetime of connection objects it creates.
Return values

a pointer to the connection
2023-05-13 14:27:10 +08:00
54f219eef2 0508 20:26 更新了注册逻辑 修改为邮箱手机申请,添加验证码接口
包结构改变
2023-05-08 20:28:34 +08:00
22aad48719 0507 19:40 db service 分离 添加好友进度一丢丢 2023-05-07 19:40:48 +08:00