842 Commits

Author SHA1 Message Date
Cloud Wu
efc1d8d408 fix #2155 2026-06-05 07:27:28 +08:00
云华
fe9f378a1a fixed: #1666错误的移除batchSize (#2151) 2026-05-06 21:13:19 +08:00
huojicha
58774183a7 [httpc] 解决几个ipv6下面的请求规范的问题 (#2149)
* 按照RFC 3986的规范处理ipv6 host的格式化问题,ipv6地址需要用 []括起来
参考: https://www.rfc-editor.org/rfc/rfc3986#section-3.2.2

* 解决ipv6格式不对的问题

* 只有域名的情况下才 set_ext_host_name
2026-04-01 15:45:33 +08:00
huojicha
6f84247f1f fix: improve hostname detection to support numeric-suffixed domains (#2147)
* fix: improve hostname detection to support numeric-suffixed domains

* 1.connect改为支持ipv6 2.check_protocol改为parse_url,语义更明确 3.解析域名时直接返回host_type
2026-03-30 20:47:15 +08:00
Cloud Wu
351d21d62c hostname should be nil if host is ip address, see #2125 2025-12-28 10:26:05 +08:00
Cloud Wu
2a5d6c38ae gen_interface needs hostname 2025-12-28 09:53:14 +08:00
Cloud Wu
e4a1250ebb rewrite httpc connect, see #2125 2025-12-27 22:53:23 +08:00
IAN.Z
bed435660e fix: httpc支持ipv6 (#2125)
* fix: httpc支持ipv6

* httpc ip:port解析放在c层

* lua-socket.c listen增加ip:port字符串解析, 相关cluster代码修改 #2124

* socketchannel changehost port可置空

* socketchannel changehost恢复port判空

* httpc解析域名加端口号逻辑优化

* 注释中字符串模式内容格式优化

---------

Co-authored-by: zhuyin.zhu <zhuyin.zhu@bytedance.com>
2025-12-27 17:11:52 +08:00
IAN.Z
1bbdeb3132 fix: cluster 支持ipv6地址字符串 (#2124)
Co-authored-by: zhuyin.zhu <zhuyin.zhu@bytedance.com>
2025-12-26 12:35:29 +08:00
bitcat🐱
a4c6e04ab0 fix: 修复升级lua5.5后的兼容性错误 (#2123) 2025-12-24 19:50:38 +08:00
bitcat🐱
7c1f979959 fix: redis cluster typo (#2112) 2025-12-01 23:24:27 +08:00
fastfullstack.com
5608d39789 添加mongodb事务接口支持 (#2102)
* 添加mongodb事务接口支持

* 按云大建议改为插件扩展模式

* 增加子模块初始化保护

---------

Co-authored-by: liujun <ljljlj114>
2025-11-13 15:50:13 +08:00
mk
bdac405324 Update: use pipeline for ASKING command in redis cluster (#2097)
- ensure ASKING and command execute sequentially and consecutively
- save one RTT
2025-10-14 21:30:09 +08:00
mk
d4b78b7ff1 Update: avoid command case mismatch in redis cluster (#2091) 2025-10-11 13:09:57 +08:00
云华
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