6 Commits

Author SHA1 Message Date
61ff6fe46b 修改了 添加好友的代码
发现了获取验证码的bug delete sri后 无报错不发数据包
还有填写验证码 错误 session删除了
2023-06-16 20:37:27 +08:00
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
c11a292f51 test init request包 序列化的字符串 会多出字节 浮点型server解析不出来。 2023-05-11 18:26:47 +08:00
22aad48719 0507 19:40 db service 分离 添加好友进度一丢丢 2023-05-07 19:40:48 +08:00
6f77f55609 小范围修改 删除打印 2023-05-04 12:55:59 +08:00
824ea2a25f tbb libevent protobuf 2023-05-03 19:09:14 +08:00