226 Commits

Author SHA1 Message Date
bitcat🐱
a4c6e04ab0 fix: 修复升级lua5.5后的兼容性错误 (#2123) 2025-12-24 19:50:38 +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
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
yzj12138
1d47bfa0b6 session或者source为0时不回消息 (#1897)
Co-authored-by: xingfan.yzj <xingfan.yzj@alibaba-inc.com>
2024-04-09 10:01:46 +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
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
子熏
1e45d4a9be 添加get_protocol接口 (#1712)
* 添加get_protocol接口

* 添加_proto字段

---------

Co-authored-by: zixun <lb151450@alibaba-inc.com>
2023-03-15 12:44:08 +08:00
t0350
5d48c02725 see #1554, handle nomore message after skynet.exit (#1556)
Co-authored-by: jietao.cjt <jietao.cjt@alibaba-inc.com>
2022-03-23 09:38:20 +08:00
zhuilang
c90e288601 Update skynet.lua (#1416)
update skynet.wait
2021-06-05 00:35:28 +08:00
zhuilang
219b15e9ec Update skynet.lua (#1415)
update skynet.ret
2021-06-03 19:11:54 +08:00
Cloud Wu
30b534b558 ignore break sessions, See issue #1413 2021-06-03 08:13:22 +08:00
Cloud Wu
96c702bb3c bugfix 2021-04-02 10:33:23 +08:00
hong
cfb638243f skynet.exit (#1324) 2021-01-14 11:03:32 +08:00
云风
4cb84ac881 skynet.init rework, See #1322 (#1323)
* skynet.init rework, See #1322

* restore init_list #1322

* xpcall init_all, See #1322
2021-01-14 10:23:58 +08:00
Cloud Wu
8022a53e50 O(1) fork_queue pop, See #1277 2020-12-16 23:05:52 +08:00
Cloud Wu
3af6b72aed close thread in suspend, See #1261 2020-12-04 15:42:35 +08:00
hong
693b962b43 to-be-closed (#1261) 2020-12-01 11:51:35 +08:00
Cloud Wu
b6354a0490 Add skynet.killthread() and debugcommand killtask 2020-10-14 14:12:29 +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
Cloud Wu
c749b13010 Revert "srv may be a local name, see #1220"
This reverts commit 875b7683c6.
2020-07-28 16:13:05 +08:00
Cloud Wu
875b7683c6 srv may be a local name, see #1220 2020-07-28 15:59:00 +08:00
Cloud Wu
6de4a012a7 fix #1154 2020-02-18 16:05:47 +08:00
Cloud Wu
41c66d1b20 add skynet.trace_timeout(on), see #1098 2019-10-22 16:11:36 +08:00
Cloud Wu
82ed7efb1b use traceback 2019-10-22 15:25:39 +08:00
wudeng
4ddc1577ef fix: coroutine leak when dispatch failed 2019-10-10 11:25:12 +08:00
wudeng
478575436b uniqtask for gm 2019-08-27 21:58:47 +08:00
Cloud Wu
9b69af0a4d use tinsert instead of table.insert 2019-05-06 10:29:23 +08:00
Cloud Wu
4159600fbc order fork, see #1000 2019-04-28 09:53:52 +08:00
Cloud Wu
304272249e fix #919 2018-11-14 11:43:23 +08:00
Cloud Wu
e0f16b8df5 remove dead_service table, address may reused 2018-10-15 10:05:23 +08:00
Cloud Wu
7e57e498f6 remove dead_service table, address may reused 2018-10-08 15:44:12 +08:00
Hanlei Qin
818ff8314d remove unused code 2018-09-27 09:59:18 +08:00
Cloud Wu
89e7a06deb add more info when service init blocked 2018-09-13 18:27:05 +08:00
Cloud Wu
c96e20e6c3 add skynet.context and enhance debug console command service 2018-09-06 18:59:33 +08:00
Cloud Wu
281acf4c71 Use fork instead of timeout 0, see #873 2018-08-07 14:55:26 +08:00
Cloud Wu
e55ad63d3c fix #873 2018-08-07 09:43:50 +08:00
Cloud Wu
3a1556e1fd add new debug command trace 2018-06-08 11:24:27 +08:00
Cloud Wu
4b5fbab129 recycle coroutine bugfix 2018-06-08 10:23:36 +08:00
Cloud Wu
b1ec1f4d18 token bugfix 2018-06-08 10:23:36 +08:00
Cloud Wu
16d8f4c774 cleanup 2018-06-08 10:23:36 +08:00
Cloud Wu
f8b5ec48e8 support user tag 2018-05-28 23:13:05 +08:00
Cloud Wu
7a26926965 resume trace log 2018-05-28 21:45:41 +08:00
Cloud Wu
9035fbe96b cluster trace 2018-05-28 16:39:04 +08:00
Cloud Wu
d6f265e703 call skynet.trace() in example 2018-05-26 17:37:19 +08:00
Cloud Wu
596c77afcd trace bugfix 2018-05-26 17:17:20 +08:00
Cloud Wu
e53d985c4f add skynet.trace() 2018-05-26 16:26:50 +08:00