Commit Graph

354 Commits

Author SHA1 Message Date
Weitao Liu
2ecf32ec73 Fix spell error (#2098) 2025-10-16 23:10:14 +08:00
851773277
cada3f5cb0 datacenterd query接口查询时,当db为nil时,终止递归 (#2006) 2024-12-09 19:51:37 +08:00
bcf97ecd1b debug_console help命令增加getenv,setenv信息 (#1966) 2024-08-07 14:14:04 +08:00
4dfdeb146e debug_console增加getenv,setenv命令 (#1965)
方便获取配置文件中信息
2024-08-07 11:59:27 +08:00
76d73c295f debug_console 增加http post,避免get url转义问题 (#1964)
增加http post,避免get url转义问题
2024-08-07 10:54:03 +08:00
Cloud Wu
b519c53fe4 Try to fix #1958 2024-07-22 00:52:19 +08:00
hong
2cfe36a809 refix register_name_mt (#1954) 2024-07-06 12:59:33 +08:00
hong
059fd5cc00 new_register_name() (#1949) 2024-06-28 05:32:01 +08:00
Cloud Wu
64a0ed4bfa Try to fix #1948 2024-06-27 08:31:30 +08:00
iamwlj
cde8f75d68 Update bootstrap.lua (#1891)
1. local var `harbor' not used
2.
`
local skynet = require "skynet"
require "skynet.manager"
`
can be simplified as `local skynet = require "skynet.manager"`
2024-03-18 22:54:39 +08:00
HYbutterfly
adf0cc5a6f check enablessl == "true" (#1815) 2023-10-27 17:16:48 +08:00
Cloud Wu
4893fa39ee remove unused code 2023-05-16 16:18:19 +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
丁大龙
6fe520a7cb cluster.open添加maxclient参数 (#1705) 2023-02-18 00:57:39 +08:00
Cloud Wu
7b76bcd039 cluster.open(0) returns addr, port 2022-09-04 15:42:59 +08:00
Cloud Wu
2d5e4ae528 cluster.open returns addr, port 2022-09-04 14:32:31 +08:00
Cloud Wu
b61daaccf1 watchdog returns addr,port 2022-09-04 14:22:13 +08:00
Cloud Wu
c8197328a4 socket.listen returns addr,port 2022-09-04 00:13:49 +08:00
Cloud Wu
800a3376d6 Revert "Update the return values of socket.listen, also return the real port bind to zero (#1638)"
This reverts commit c1eeba215d.
2022-09-03 22:03:11 +08:00
zaxbbun
c1eeba215d Update the return values of socket.listen, also return the real port bind to zero (#1638) 2022-09-03 07:19:03 +08:00
fanyh
3911e0738b 修改clusterd node closed 后再次命中__index 会继续触发 call changenode (#1614) 2022-06-20 20:06:08 +08:00
coder
969d3291b6 删除无用forwarding数据 (#1565) 2022-04-02 19:30:46 +08:00
JTrancender
b555aa19e7 feat: add cluster.unregister (#1563) 2022-04-02 12:17:47 +08:00
xjdrew
6d6be8dec6 skynet.service: add close (#1526)
Co-authored-by: drew.zxj <drew.zxj@alibaba-inc.com>
2022-01-21 10:34:00 +08:00
noname
d9762b8f38 sharedata 去掉多余的value字段 (#1442) 2021-07-15 20:14:05 +08:00
云风
72a6182601 bugfix #1434 (#1439) 2021-07-15 09:35:31 +08:00
Cloud Wu
11165ce727 fix #1368 2021-03-29 14:27:37 +08:00
风---自由
4c9c9ce6bd debug_console add dbgcmd command (#1325) 2021-01-18 10:41:30 +08:00
子熏
c0e3421462 bugfix ltls init #1314 (#1318)
* bugfix ltls init #1314

* 修改init失败信息

* fix destructor

Co-authored-by: zixun <lvzxiun@gmail.com>
2021-01-11 15:15:25 +08:00
Cloud Wu
8eac155b1b reset connection if node_sender exist, see issue #1273 2020-12-12 14:44:28 +08:00
Cloud Wu
e8a48483ab Check address changes before raise error, fix #1273 2020-12-11 12:02:32 +08:00
najoast
5248d443dc Fix typo: Causes an error when resp is false (#1260)
Co-authored-by: zhouyan <zhouyan@onemt.com.cn>
2020-11-24 18:32:28 +08:00
Cloud Wu
e669913b2a log debug console client ip 2020-10-14 17:10:29 +08:00
Cloud Wu
55f207c1d2 fix debug console command : kill 2020-10-14 16:24:04 +08:00
Cloud Wu
b6354a0490 Add skynet.killthread() and debugcommand killtask 2020-10-14 14:12:29 +08:00
Cloud Wu
623d8182eb fix #1246 2020-10-10 18:04:20 +08:00
云风
eaa60ca8dd Update to lua 5.4 (#1174)
* update to lua 5.4.0-rc1

* remove LUA_ERRGCMM

* use age bits for shared

* remove unused lbitlib.c

* use luaV_fastget

* fix #1174

* suspend函数tailcall优化

* 防止没有session导致未调用suspend

* luaH_setint check shared (#1184)

* set LUA_GCGEN by default

* fix #1174 (#1186)

checkshared in sweeplist

* update to lua 5.4 rc2

* update to lua 5.4 rc4

* move skynet.profile into snlua

* Use lua_sethook to interrupt tight loops

* remove lua_checksig

* critical condition for signals

* update to lua 5.4 released

* lua 5.4 bugfix

* update lua bugfix

* fix lua_sharestring (#1224)

* update lua

* update lua 5.4

* update README

* add skynet.select

* add test

* test error & discard

* yield session

* request error has no error message

* add timeout to skynet.select

* bugfix

* for lua 5.4

* new version

* bugfix

* bugfix

* use if instead of while

* make local

* yield in select for

* update lua 5.4.1

* change lua version (#1245)

Co-authored-by: xiaojin <xiaojin@onemt.com.cn>

* update lua version number

Co-authored-by: hong <hongling0@gmail.com>
Co-authored-by: hong <hongling-0@qq.com>
Co-authored-by: 风---自由 <996442717qqcom@gmail.com>
Co-authored-by: xiaojin <xiaojin@onemt.com.cn>
2020-10-10 13:36:59 +08:00
fanlix
f2b1bd7319 stat: add mem stat for jemalloc (#1218)
1, add opts arg for mallctl,dumpinfo
2, collect jemalloc.mem info
3, add debug_console cmd: jmem

Co-authored-by: fx <fx@f.x>
2020-07-22 19:26:39 +08:00
Cloud Wu
ac38fd620b see #1150 2020-02-14 16:38:16 +08:00
fisherman
5527e9e32e 增加 查询错误 提示 2019-12-13 16:15:54 +08:00
Cloud Wu
99a7d745fb use socket_channle:changehost, this may also fix #1130 2019-12-04 15:33:01 +08:00
Sean Feng
9c4e0d5bb7 add senders command in clusterd service 2019-09-29 08:34:43 +08:00
Cloud Wu
e485aae55b This may fix #1080 2019-08-30 10:16:31 +08:00
wudeng
478575436b uniqtask for gm 2019-08-27 21:58:47 +08:00
Cloud Wu
baf5987b0b fix #1062 2019-08-07 10:20:38 +08:00
Cloud Wu
5d26fb3f18 remove ssm and add string id 2019-06-25 10:01:19 +08:00
lwkienun
8e2facbfb8 fix crash of sharedata by incref before sharedated.monitor return cobj to client.
crash occr analise:
1.sharedated.update call many times in a short time(eg:3 times) to change a same name conf value to a->b->c->d.
2.sharedated sending 3 response  to monitoring clients。a->b and b->c and c->d.
3.if b is destroyed and it's memory is reallocated and rewrited when client process the first message a->b, client's call lbox will crash.

solution:
conf b must be keeped before message(a->b) is processed by inc it's ref.
Any return value from host to client must use incref before send to client.
2019-06-15 15:59:37 +08:00
Cloud Wu
47d1047004 sweep garbage strings 2019-06-10 15:11:51 +08:00
Cloud Wu
2bcc691c4d add gc service 2019-06-10 15:11:51 +08:00
Cloud Wu
2ceb642b5d rewrite SSM and clonefunction 2019-06-10 15:11:51 +08:00