Commit Graph

2182 Commits

Author SHA1 Message Date
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
emmanuel
267cf5384c Update README.md (#1870) 2024-02-13 09:20:44 +08:00
zhuilang
6f24b08f02 mongo 支持 hint (#1865)
* mongo 支持 hint

mongodb查询有时不会命中最优索引,所以支持下 hint 使用
2024-02-02 15:58:57 +08:00
华仔
d0b11c7955 remove unused local variable (#1864)
* fix word err

* fix word err

* 增加mongo update 测试

* remove unused local variable
2024-01-31 10:57:26 +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
华仔
fb97668f9e fix word err (#1847) 2024-01-03 20:05:28 +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
8b5bbaabd9 Update lua version number 2023-11-13 15:17:02 +08:00
Cloud Wu
f97c72d341 Release 1.7.0 v1.7.0 2023-11-13 15:13:08 +08:00
shencyx
f7453973f8 避免 sharedata 误用大于32位数字做 key 时,可能导致程序崩溃 (#1820)
Co-authored-by: shencyx <yixin.cen@alibaba-inc.com>
2023-11-07 11:52:58 +08:00
ykxpb
0e6423484f 修复 openssl3 deprecated warning ERR_load_BIO_strings (#1816) 2023-10-30 18:15:27 +08:00
HYbutterfly
adf0cc5a6f check enablessl == "true" (#1815) 2023-10-27 17:16:48 +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
Cloud Wu
93ea565bcb Improve README, See #1785 2023-07-31 10:19:40 +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
Jin Xiao
69420bdfde upgrade lpeg to 1.1.0 (#1766)
* upgrade lpeg to 1.1.0

* fix lpeg compiler error
2023-06-27 16:28:21 +08:00
Cloud Wu
2f9d0c805a include stdint.h for uintptr_t 2023-06-14 23:05:40 +08:00
Cloud Wu
4893fa39ee remove unused code 2023-05-16 16:18:19 +08:00
Cloud Wu
a5af5f6ba7 Overload socket_read(), See #1750 2023-05-16 15:59:43 +08:00
Cloud Wu
8b55660274 Update lua 5.4.6 rc1 2023-05-08 19:08:11 +08:00
twinklinggu
d56cf80f95 Fix socket not closed when clusteragent exit (#1741)
Co-authored-by: twinklinggu <twinkling.gu@gmail.com>
2023-04-14 17:36:23 +08:00
Cloud Wu
aedfb9288d See #1529 2023-03-29 16:25:49 +08:00
子熏
223bd599ba 修复设置 callback导致的crash问题 (#1726)
* fix set callback in resolve _cb

* 调整注释

* 使用预处理callback 来解决引用问题

* add cb_pre and forward_pre

* delete precb_context

* format tab

---------

Co-authored-by: zixun <lb151450@alibaba-inc.com>
2023-03-29 10:42:31 +08:00
子熏
b9a5cec191 update sproto (#1720)
Co-authored-by: zixun <lb151450@alibaba-inc.com>
2023-03-21 21:37:03 +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
丁大龙
f344a49755 修复client_number计数错误 (#1704) 2023-02-17 14:36:32 +08:00
Cloud Wu
39f3ddbc10 update lua 2023-01-29 11:08:14 +08:00
华仔
cc562547a5 ignore .vscode (#1689)
Co-authored-by: Faker2 <faker@git.com>
2023-01-06 11:23:22 +08:00
Cloud Wu
58b1bda0d9 first key can't can be in hash part, see #1484 2022-11-21 19:26:16 +08:00
Cloud Wu
98311b9b91 release 1.6.0 v1.6.0 2022-11-16 10:46:35 +08:00
Cloud Wu
499610965a Update lua 2022-11-16 10:28:38 +08:00
Cloud Wu
94a76269aa Fix #1668 2022-10-27 15:30:06 +08:00