Commit Graph

2267 Commits

Author SHA1 Message Date
子熏
195a60d1f0 优化skynet_handle skynet_handle_grab (#2148)
Co-authored-by: lvzixun <lb151450@alibaba-inc.com>
2026-03-31 22:43:38 +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
quetta-1030
2b6b106e57 fix: add -lcrypto to ltls.so link flags (#2143)
Fix missing -lcrypto linker flag when building ltls.so.
Without libcrypto, TLS handshake may fail with OpenSSL 3.x.

Fixes #2099

Co-authored-by: pentta1e30 <pentta1e30@gmail.com>
2026-03-08 09:56:49 +08:00
wasabilofgu
c2150ba849 Change sleep function to accept seconds instead of ms (#2139) 2026-03-04 14:00:35 +08:00
Cloud Wu
83fa834e1f bugfix : redundant %s 2026-02-07 11:28:32 +08:00
Cloud Wu
bbb12f3c85 update sproto 2025-12-29 18:51:36 +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
云风
9f7634d477 Update README.md 2025-12-24 19:36:32 +08:00
Bruce
ae034cf692 fix: use same hash seed when creating VM for shared tables (#2122)
When creating a new Lua VM to load shared tables, use the same hash
seed from the parent VM instead of generating a new random seed.

Different VMs have different hash seeds, causing identical strings to
have different hash values. When looking up string keys in a shared
table from another VM, the hash-based bucket lookup fails because the
search key's hash doesn't match the stored key's hash.

Solution: Pass G(L)->seed to lua_newstate() instead of using
luaL_newstate() which generates a new random seed each time.
2025-12-24 19:27:20 +08:00
Bruce
022c619c63 Avoid different function declarations when build as windows DLL (#1959) 2025-12-23 23:55:16 +08:00
Cloud Wu
0cf8de8649 shared short strings blog 2025-12-23 10:27:49 +08:00
云风
406f3a7437 Lua 5.5.0 Release (#2119)
* Lua 5.5 beta

* lua 5.5.0 release
2025-12-23 10:19:09 +08:00
Cloud Wu
28e8087029 fix #2115 2025-12-16 08:34:36 +08:00
bitcat🐱
7c1f979959 fix: redis cluster typo (#2112) 2025-12-01 23:24:27 +08:00
涵曦
2fca5221ec feat: add workflow auto build release (#2111) 2025-11-28 22:53:57 +08:00
涵曦
234e134967 feat: add MinGW cross-compilation support for Windows builds on Linux (#2108) 2025-11-26 00:07:43 +08:00
fastfullstack.com
5608d39789 添加mongodb事务接口支持 (#2102)
* 添加mongodb事务接口支持

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

* 增加子模块初始化保护

---------

Co-authored-by: liujun <ljljlj114>
2025-11-13 15:50:13 +08:00
Weitao Liu
2ecf32ec73 Fix spell error (#2098) 2025-10-16 23:10:14 +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
EfveZombie
7386688320 skynet_context: skynet_context_new 改为返回 handle 避免调用者拿到悬垂指针 (#2095)
* skynet_context: skynet_context_new 改为返回 handle 避免调用者拿到悬垂指针

* 推迟 skynet_handle_grab(logger_handle) 到 bootstrap 失败阶段

---------

Co-authored-by: efve.zff <efve.zff@alibaba-inc.com>
2025-10-14 18:00:58 +08:00
mk
d4b78b7ff1 Update: avoid command case mismatch in redis cluster (#2091) 2025-10-11 13:09:57 +08:00
EfveZombie
528b6bd32f mem: 优化 C 内存统计, 缓解多线程竞争导致的 skynet_malloc 性能下降 (#2083)
* mem: 优化 C 内存统计, 缓解多线程竞争导致的 skynet_malloc 性能下降

* rm unused SPMC_STEP_LG macro

---------

Co-authored-by: efve.zff <efve.zff@alibaba-inc.com>
2025-09-11 21:23:07 +08:00
涵曦
754932cef4 feature: add bson_to_lightuserdata api. see #2074 (#2075) 2025-08-09 18:07:43 +08:00
Zwlin
b02d619dd8 fix comment: check start time (#2038) 2025-06-15 20:59:01 +08:00
Cloud Wu
e21604783a Fix #2060 2025-06-15 10:49:56 +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
Cloud Wu
e0bc6fe2d6 update lua 5.4.8 rc1 2025-05-22 07:47:18 +08:00
zhuilang
077d1fbd64 Update internal.lua (#2053)
header 传进来可能是空值
2025-05-21 17:52:32 +08:00
EfveZombie
5eab3d7e22 lua-skynet: lerror 格式符使用 "%*s", 节省一次 strlen (#2051)
* lua-skynet: lerror 格式符使用 "%*s", 节省一次 strlen

* make skynet_strdup/skynet_strndup static, remove skynet_asprintf/skynet_vasprintf

---------

Co-authored-by: efve.zff <efve.zff@alibaba-inc.com>
2025-05-21 17:49:34 +08:00
EfveZombie
b2612d92eb socket_server: 增加 request_package 初始化, 避免内存工具警告 (#2050)
* socket_server: 增加 request_package 初始化逻辑, 避免内存工具警告

* add request_init function instead of {0}

---------

Co-authored-by: efve.zff <efve.zff@alibaba-inc.com>
2025-05-21 15:35:57 +08:00
云华
94450ff00f fixed: service_gate_c half close (#2047) 2025-05-14 13:15:26 +08:00
tzngit
438c4ee9ed http chunked不能同时指定content-length (#2046)
Co-authored-by: tangzhaoning <sherlock@eyugame.com>
2025-05-12 18:22:17 +08:00
fanyh
1ba381a1c2 skynet_error output abnormal log add error tag (#2039) 2025-03-18 20:14:45 +08:00
Tom Lau
93e72a92ac allow t[nil] => nil in table returned by sharedata (#2037) 2025-03-06 12:03:30 +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
Cloud Wu
ba64be6f9f Update history for v1.8.0 release v1.8.0 2025-01-14 09:50:26 +08:00
Jason N. White
e1c28ed13e Update LICENSE, fix license year (#2021)
Signed-off-by: JasonnnW3000 <sufssl04@gmail.com>
2025-01-01 08:53:34 +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
navi
88df42a60f fix message数量过多导致int溢出 (#2014)
Co-authored-by: 角弓 <jiaogong.lzh@alibaba-inc.com>
2024-12-26 17:29:48 +08:00
851773277
cada3f5cb0 datacenterd query接口查询时,当db为nil时,终止递归 (#2006) 2024-12-09 19:51:37 +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
Bob Conan
b5403a6866 Updated HISTORY.md, fix typo(s) (#1999) 2024-11-16 07:34:04 +08:00