Commit Graph

828 Commits

Author SHA1 Message Date
云华
4ff4db3161 feature: mongo 增加 bulkWrite (#2058)
mongo8.0 新增跨集合更新api: bulkWrite(相对单一更新 性能大幅提升)
btw: 低量级数据建议继续选择单一更新(insert/update等 )

应用场景:
1. 聚合数据更新
2. 日志db跨集合写入
2025-06-05 19:52:24 +08:00
maplescene
5885514138 Update mongo.lua (#2054)
这里运算符有优先级问题
2025-05-25 23:46:17 +08:00
zhuilang
077d1fbd64 Update internal.lua (#2053)
header 传进来可能是空值
2025-05-21 17:52:32 +08:00
tzngit
438c4ee9ed http chunked不能同时指定content-length (#2046)
Co-authored-by: tangzhaoning <sherlock@eyugame.com>
2025-05-12 18:22:17 +08:00
wanli
ad96b6c736 * 增加mysql使用execute方法解析date格式数据 (#2035)
* * 增加mysql使用execute方法解析date格式数据

* 优化mysql模块解析date失败时处理方式

---------

Co-authored-by: test <test@test.com>
2025-03-06 12:02:32 +08:00
华仔
474f04e864 fix socketchannel closed thread not wakeup (#2020) 2024-12-30 21:26:40 +08:00
sundream
7c3942cdbd fix(rediscluster): maybe too many connection when MOVED (#2016) 2024-12-29 09:24:21 +08:00
华仔
2fc8e86925 fix websocket accept mem leakage (#2002)
* fix websocket accept mem leakage

* fix websocket accept mem leakage

* fix websocket accept mem leakage

* fix websocket accept mem leakage
2024-12-07 15:20:19 +08:00
华仔
4c8d42153e throw it out err (#2003) 2024-12-06 17:23:42 +08:00
b1bb84ddbd 去除语法检查告警 (#1973)
* Update loader.lua去除语法检查告警

* Update mysql.lua去除语法检查告警
2024-08-30 12:33:30 +08:00
huojicha
839570ce3f 1.提供支持ipv6的udp client和server接口, 可支持ipv6 (#1967)
* 1.提供支持ipv6的udp client和server接口, 可支持ipv6

* remove chinese comments
2024-08-08 02:34:15 +08:00
zhuilang
c2b391ed42 Update httpc.lua (#1962) 2024-07-27 00:42:15 +08:00
89372a257d https set extension:server_name (#1960)
Co-authored-by: root <root@DESKTOP-5DF4NN3.localdomain>
2024-07-24 11:55:05 +08:00
anonymou3
f214c68ff3 The listen function supports passing backlog parameters (#1941)
Co-authored-by: anonymou3 <anonymou3>
2024-06-24 07:21:49 +08:00
华仔
dc1980dfc8 fix attempt to concatenate a nil value (local timeout) (#1936) 2024-06-24 07:21:49 +08:00
mippo520
ccd923c44f skynet.wait中使用的session增加回绕判断 (#1931)
* skynet.wait中使用的session增加回绕判断

* 去除session判空

---------

Co-authored-by: mippo <hui.zeng@centurygame.com>
2024-06-24 07:21:49 +08:00
华仔
45b407481d fix socketchannel mem leakage (#1921) 2024-06-24 07:21:49 +08:00
yzj12138
267e4ad44d skynet使用原生error,防止给替换 (#1906)
Co-authored-by: xingfan.yzj <xingfan.yzj@alibaba-inc.com>
2024-05-09 18:06:47 +08:00
t0350
caf513e6c0 make task/uniqtask consistent (#1902) 2024-04-23 15:32:36 +08:00
华仔
22df64244a 优化http出错抛出更详细的错误信息 (#1900)
* 优化http出错抛出更详细的错误信息

* 优化http err_info写法
2024-04-10 13:40:41 +08:00
yzj12138
1d47bfa0b6 session或者source为0时不回消息 (#1897)
Co-authored-by: xingfan.yzj <xingfan.yzj@alibaba-inc.com>
2024-04-09 10:01:46 +08:00
华仔
43225367fb fix websocket客户端连接过程中握手失败导致内存泄漏 (#1899)
* fix word err

* fix word err

* 增加mongo update 测试

* remove unused local variable

* fix websocket客户端连接过程中握手失败导致内存泄漏
2024-04-08 16:36:11 +08:00
iamwlj
72688f5771 Update msgserver.lua (#1889)
使用本地变量,不然本地变量`request_handler`未使用
2024-03-18 18:54:12 +08:00
zhuilang
3bbb62e673 Update mongo.lua (#1884) 2024-03-07 19:20:51 +08:00
zhuilang
c18f99eb7e mongodb 查询增加 maxTimeMS (#1882)
* 查询增加 maxTimeMS

* Update mongo.lua
2024-03-07 10:13:22 +08:00
coldskycoldsky
bd5f12b959 fix: 当 mysql 数据库日期类型(timestamp, datetime)的字段,数据值没有 "时间部分(时分秒)" 时,比如 "2019-01-01" (#1879)
数据的长度是4(年2,月1, 日1),
而不是预期的7(年2,月1, 日1, 时1, 分1, 秒1)
2024-03-01 14:08:27 +08:00
zhuilang
6f24b08f02 mongo 支持 hint (#1865)
* mongo 支持 hint

mongodb查询有时不会命中最优索引,所以支持下 hint 使用
2024-02-02 15:58:57 +08:00
t0350
6bdc8b8608 bugfix, parsing http array form (#1852) 2024-01-12 18:10:36 +08:00
华仔
b309d82538 fix word err (#1848)
* fix word err

* fix word err

* 增加mongo update 测试
2024-01-06 16:38:14 +08:00
yzj12138
9e000da81f 修复执行skynet.exit后别的服务call有概率卡死 (#1846)
Co-authored-by: xingfan.yzj <xingfan.yzj@alibaba-inc.com>
2024-01-03 18:14:17 +08:00
Cloud Wu
d9c30f9119 fix #1845 2023-12-27 21:02:25 +08:00
robot
4030687400 在进行https握手时,会有小概率在进行密钥协商前,tcp流卡住,导至不能有效timeout行为 (#1842) 2023-12-20 13:07:38 +08:00
Zoro
1f93f4864f fix write_handshake (#1841)
Signed-off-by: zorocn <mengzust@gmail.com>
2023-12-14 21:04:43 +08:00
子熏
e66e892ee5 fix read_handshake (#1839)
Co-authored-by: zixun <lb151450@alibaba-inc.com>
2023-12-13 11:53:08 +08:00
kuzhu
30d967ea05 add get_sender function to outside (#1832)
* add get_sender function to outside

目的是用sender结合skynet.select的超时特性,实现一个超时的cluster.call,所以希望这里能够把get_sender的接口加上

* Update cluster.lua

改为cluster.get_sender = get_sender
2023-12-04 16:28:30 +08:00
felove
4b0937cc19 修复mysql.execute的变长参数最后一个为nil时的NULL位图错误 (#1829)
Co-authored-by: wfl <felove_2008@qq.com>
2023-12-01 11:28:59 +08:00
zhuilang
89b47f9372 modify httpc.request (#1823)
* modify httpc.request

这样可能更好点

* modify httpc.request
2023-11-17 19:49:42 +08:00
zhuilang
6249062c2d Update httpc.request (#1822) 2023-11-15 22:11:24 +08:00
Cloud Wu
5ec02a4a2c Add a rare case 2023-09-28 20:15:29 +08:00
Cloud Wu
f3f7e725e8 check session == nil 2023-09-28 14:40:02 +08:00
云风
172278bc8f check conflict (#1798)
* rewind check conflict

* Use auxsend instead of c.send
2023-09-28 13:48:35 +08:00
Cloud Wu
c178c398b9 don't report error when session == 0 2023-07-31 21:31:21 +08:00
华仔
bb90b64c3f websocket添加is_close方法 (#1781)
* websocket添加is_close方法

* 代码优化
2023-07-19 20:01:41 +08:00
Whislly
c6a8976bc3 findOne优化 (#1772)
1、直接调用runCommand方法
2、增加"limit": 1参数,限制只返回一条数据
2023-07-10 12:29:16 +08:00
Whislly
074426e273 pipline方法优化 (#1771)
1、增加sort_statge、skip_statge、limit_statge、count_statge替换临时table
2、改成for i = 1, 2 do self.__pipeline[len + i] = nil end清除老数据
2023-07-07 20:11:36 +08:00
Whislly
b402837628 聚合方法返回游标对象 (#1769)
* 聚合方法返回游标对象

* 使用table.move()替换for循环拷贝

* 改成使用类似继承的方法

1、返回aggregate_cursor不修改mongo_cursor,直接拷贝mongo_cursor的sort、skip、limit、next、close方法
2、修改了mongo_cursor:count,不再使用unpack
3、aggregate_cursor:count和aggregate_cursor:hasNext方法里options为nil时,不使用unpack
4、mongo_collection:aggregate方法里拷贝了pipeline和options
2023-07-07 15:14:37 +08:00
yzj
272af34736 修改delete使用send_command (#1770)
Co-authored-by: xingfan.yzj <xingfan.yzj@alibaba-inc.com>
2023-07-06 17:44:02 +08:00
Cloud Wu
a5af5f6ba7 Overload socket_read(), See #1750 2023-05-16 15:59:43 +08:00
子熏
1e45d4a9be 添加get_protocol接口 (#1712)
* 添加get_protocol接口

* 添加_proto字段

---------

Co-authored-by: zixun <lb151450@alibaba-inc.com>
2023-03-15 12:44:08 +08:00
丁大龙
6fe520a7cb cluster.open添加maxclient参数 (#1705) 2023-02-18 00:57:39 +08:00